Package boofcv.struct.packed
Class PackedBigArrayPoint2D_F32
java.lang.Object
boofcv.struct.packed.PackedBigArrayPoint2D_F32
- All Implemented Interfaces:
PackedArray<Point2D_F32>,LArrayAccessor<Point2D_F32>
@Generated("boofcv.struct.packed.PackedBigArrayPoint2D_F64")
public class PackedBigArrayPoint2D_F32
extends Object
implements PackedArray<Point2D_F32>
Packed array of
Point2D_F32. Internally the point is stored in an interleaved format.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor where the default is used for all parameters.PackedBigArrayPoint2D_F32(int reservedPoints) Constructor where the initial number of points is specified and everything else is defaultPackedBigArrayPoint2D_F32(int reservedPoints, int blockSize, BigDogGrowth growth) Constructor which allows access to all array parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(float x, float y) voidappend(Point2D_F32 element) Appends a copy to the end of the arrayvoidcopy(Point2D_F32 src, Point2D_F32 dst) voidforIdx(int idx0, int idx1, BoofLambdas.ProcessIndex<Point2D_F32> op) Passes in each object and index within the specified range.voidgetCopy(int index, Point2D_F32 dst) getTemp(int index) voidreserve(int numPoints) Ensure there is enough space to store 'numElements' before the internal array needs to grow.voidreset()Resets the array's size to be zerovoidset(int index, Point2D_F32 element) Sets an element's valueintsize()
-
Field Details
-
temp
-
numPoints
protected int numPoints
-
-
Constructor Details
-
PackedBigArrayPoint2D_F32
public PackedBigArrayPoint2D_F32()Constructor where the default is used for all parameters. -
PackedBigArrayPoint2D_F32
public PackedBigArrayPoint2D_F32(int reservedPoints) Constructor where the initial number of points is specified and everything else is default -
PackedBigArrayPoint2D_F32
Constructor which allows access to all array parameters- Parameters:
reservedPoints- Reserve space to store this number of points initiallyblockSize- A single block will be able to store this number of pointsgrowth- Growth strategy to use
-
-
Method Details
-
reset
public void reset()Description copied from interface:PackedArrayResets the array's size to be zero- Specified by:
resetin interfacePackedArray<Point2D_F32>
-
reserve
public void reserve(int numPoints) Description copied from interface:PackedArrayEnsure there is enough space to store 'numElements' before the internal array needs to grow. Does not change the size- Specified by:
reservein interfacePackedArray<Point2D_F32>- Parameters:
numPoints- Minimum number of elements allocated to the array
-
append
public void append(float x, float y) -
append
Description copied from interface:PackedArrayAppends a copy to the end of the array- Specified by:
appendin interfacePackedArray<Point2D_F32>- Parameters:
element- (Input) The element which is copied then added
-
set
Description copied from interface:PackedArraySets an element's value- Specified by:
setin interfacePackedArray<Point2D_F32>
-
getTemp
- Specified by:
getTempin interfaceLArrayAccessor<Point2D_F32>
-
getCopy
- Specified by:
getCopyin interfaceLArrayAccessor<Point2D_F32>
-
copy
- Specified by:
copyin interfaceLArrayAccessor<Point2D_F32>
-
size
public int size()- Specified by:
sizein interfaceLArrayAccessor<Point2D_F32>
-
getElementType
- Specified by:
getElementTypein interfaceLArrayAccessor<Point2D_F32>
-
forIdx
Description copied from interface:PackedArrayPasses in each object and index within the specified range. Modifications to the passed in objcet will be saved in the array.- Specified by:
forIdxin interfacePackedArray<Point2D_F32>- Parameters:
idx0- Initial index. Inclusiveidx1- Last index, Exclusiveop- The operation to process each element
-