Package boofcv.struct.packed
Class PackedArrayPoint4D_F64
java.lang.Object
boofcv.struct.packed.PackedArrayPoint4D_F64
- All Implemented Interfaces:
PackedArray<Point4D_F64>
,LArrayAccessor<Point4D_F64>
public class PackedArrayPoint4D_F64 extends Object implements PackedArray<Point4D_F64>
Packed array of
Point4D_F64
. Internally the point is stored in an interleaved format.-
Field Summary
Fields Modifier and Type Field Description DogArray_F64
array
protected int
numElements
Point4D_F64
temp
-
Constructor Summary
Constructors Constructor Description PackedArrayPoint4D_F64()
-
Method Summary
Modifier and Type Method Description void
append(Point4D_F64 element)
Appends a copy to the end of the arrayvoid
copy(Point4D_F64 src, Point4D_F64 dst)
void
forIdx(int idx0, int idx1, BoofLambdas.ProcessIndex<Point4D_F64> op)
For each with indexvoid
getCopy(int index, Point4D_F64 dst)
Class<Point4D_F64>
getElementType()
Point4D_F64
getTemp(int index)
void
reserve(int numTuples)
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
-
array
-
temp
-
numElements
protected int numElements
-
-
Constructor Details
-
PackedArrayPoint4D_F64
public PackedArrayPoint4D_F64()
-
-
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_F64>
-
reserve
public void reserve(int numTuples)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_F64>
- Parameters:
numTuples
- Minimum number of elements allocated to the array
-
append
Description copied from interface:PackedArray
Appends a copy to the end of the array- Specified by:
append
in interfacePackedArray<Point4D_F64>
- Parameters:
element
- (Input) The element which is copied then added
-
getTemp
- Specified by:
getTemp
in interfaceLArrayAccessor<Point4D_F64>
-
getCopy
- Specified by:
getCopy
in interfaceLArrayAccessor<Point4D_F64>
-
copy
- Specified by:
copy
in interfaceLArrayAccessor<Point4D_F64>
-
size
public int size()- Specified by:
size
in interfaceLArrayAccessor<Point4D_F64>
-
getElementType
- Specified by:
getElementType
in interfaceLArrayAccessor<Point4D_F64>
-
forIdx
Description copied from interface:PackedArray
For each with index- Specified by:
forIdx
in interfacePackedArray<Point4D_F64>
- Parameters:
idx0
- Initial index. Inclusiveidx1
- Last index, Exclusiveop
- The operation to process each element
-