Package boofcv.struct.packed
Class PackedBigArrayPoint4D_F32
java.lang.Object
boofcv.struct.packed.PackedBigArrayPoint4D_F32
- All Implemented Interfaces:
PackedArray<Point4D_F32>
,LArrayAccessor<Point4D_F32>
@Generated("boofcv.struct.packed.PackedBigArrayPoint4D_F64") public class PackedBigArrayPoint4D_F32 extends Object implements PackedArray<Point4D_F32>
Packed array of
Point4D_F32
. Internally the point is stored in an interleaved format.-
Field Summary
Fields Modifier and Type Field Description protected int
numPoints
Point4D_F32
temp
-
Constructor Summary
Constructors Constructor Description PackedBigArrayPoint4D_F32()
Constructor where the default is used for all parameters.PackedBigArrayPoint4D_F32(int reservedPoints)
Constructor where the initial number of points is specified and everything else is defaultPackedBigArrayPoint4D_F32(int reservedPoints, int blockSize, BigDogGrowth growth)
Constructor which allows access to all array parameters -
Method Summary
Modifier and Type Method Description void
append(float x, float y, float z, float w)
void
append(Point4D_F32 element)
Appends a copy to the end of the arrayvoid
copy(Point4D_F32 src, Point4D_F32 dst)
void
forIdx(int idx0, int idx1, BoofLambdas.ProcessIndex<Point4D_F32> op)
For each with indexvoid
getCopy(int index, Point4D_F32 dst)
Class<Point4D_F32>
getElementType()
Point4D_F32
getTemp(int index)
void
reserve(int numPoints)
Ensure there is enough space to store 'numElements' before the internal array needs to grow.void
reset()
Resets the array's size to be zeroint
size()
-
Field Details
-
temp
-
numPoints
protected int numPoints
-
-
Constructor Details
-
PackedBigArrayPoint4D_F32
public PackedBigArrayPoint4D_F32()Constructor where the default is used for all parameters. -
PackedBigArrayPoint4D_F32
public PackedBigArrayPoint4D_F32(int reservedPoints)Constructor where the initial number of points is specified and everything else is default -
PackedBigArrayPoint4D_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:PackedArray
Resets the array's size to be zero- Specified by:
reset
in interfacePackedArray<Point4D_F32>
-
reserve
public void reserve(int numPoints)Description copied from interface:PackedArray
Ensure there is enough space to store 'numElements' before the internal array needs to grow. Does not change the size- Specified by:
reserve
in interfacePackedArray<Point4D_F32>
- Parameters:
numPoints
- Minimum number of elements allocated to the array
-
append
public void append(float x, float y, float z, float w) -
append
Description copied from interface:PackedArray
Appends a copy to the end of the array- Specified by:
append
in interfacePackedArray<Point4D_F32>
- Parameters:
element
- (Input) The element which is copied then added
-
getTemp
- Specified by:
getTemp
in interfaceLArrayAccessor<Point4D_F32>
-
getCopy
- Specified by:
getCopy
in interfaceLArrayAccessor<Point4D_F32>
-
copy
- Specified by:
copy
in interfaceLArrayAccessor<Point4D_F32>
-
size
public int size()- Specified by:
size
in interfaceLArrayAccessor<Point4D_F32>
-
getElementType
- Specified by:
getElementType
in interfaceLArrayAccessor<Point4D_F32>
-
forIdx
Description copied from interface:PackedArray
For each with index- Specified by:
forIdx
in interfacePackedArray<Point4D_F32>
- Parameters:
idx0
- Initial index. Inclusiveidx1
- Last index, Exclusiveop
- The operation to process each element
-