Package boofcv.struct.packed
Class PackedBigArrayPoint3D_F64
java.lang.Object
boofcv.struct.packed.PackedBigArrayPoint3D_F64
- All Implemented Interfaces:
PackedArray<Point3D_F64>
,LArrayAccessor<Point3D_F64>
Packed array of
Point3D_F64
. Internally the point is stored in an interleaved format.-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor where the default is used for all parameters.PackedBigArrayPoint3D_F64
(int reservedPoints) Constructor where the initial number of points is specified and everything else is defaultPackedBigArrayPoint3D_F64
(int reservedPoints, int blockSize, BigDogGrowth growth) Constructor which allows access to all array parameters -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(double x, double y, double z) void
append
(GeoTuple3D_F64<?> element) void
append
(Point3D_F64 element) Appends a copy to the end of the array<T extends GeoTuple3D_F64<T>>
voidappendAll
(Collection<T> collection) Adds all the points in the collectionvoid
copy
(Point3D_F64 src, Point3D_F64 dst) void
forIdx
(int idx0, int idx1, BoofLambdas.ProcessIndex<Point3D_F64> op) Passes in each object and index within the specified range.void
getCopy
(int index, GeoTuple3D_F64<?> dst) void
getCopy
(int index, Point3D_F64 dst) 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 zerovoid
set
(int index, Point3D_F64 element) Sets an element's valueMakes this array have a value identical to 'src'int
size()
-
Field Details
-
temp
-
size
protected int size
-
-
Constructor Details
-
PackedBigArrayPoint3D_F64
public PackedBigArrayPoint3D_F64()Constructor where the default is used for all parameters. -
PackedBigArrayPoint3D_F64
public PackedBigArrayPoint3D_F64(int reservedPoints) Constructor where the initial number of points is specified and everything else is default -
PackedBigArrayPoint3D_F64
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
-
setTo
Makes this array have a value identical to 'src'- Parameters:
src
- original array being copies- Returns:
- Reference to 'this'
-
reset
public void reset()Description copied from interface:PackedArray
Resets the array's size to be zero- Specified by:
reset
in interfacePackedArray<Point3D_F64>
-
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<Point3D_F64>
- Parameters:
numPoints
- Minimum number of elements allocated to the array
-
append
public void append(double x, double y, double z) -
append
-
set
Description copied from interface:PackedArray
Sets an element's value- Specified by:
set
in interfacePackedArray<Point3D_F64>
-
appendAll
Adds all the points in the collection -
append
Description copied from interface:PackedArray
Appends a copy to the end of the array- Specified by:
append
in interfacePackedArray<Point3D_F64>
- Parameters:
element
- (Input) The element which is copied then added
-
getTemp
- Specified by:
getTemp
in interfaceLArrayAccessor<Point3D_F64>
-
getCopy
- Specified by:
getCopy
in interfaceLArrayAccessor<Point3D_F64>
-
getCopy
-
copy
- Specified by:
copy
in interfaceLArrayAccessor<Point3D_F64>
-
size
public int size()- Specified by:
size
in interfaceLArrayAccessor<Point3D_F64>
-
getElementType
- Specified by:
getElementType
in interfaceLArrayAccessor<Point3D_F64>
-
forIdx
Description copied from interface:PackedArray
Passes in each object and index within the specified range. Modifications to the passed in objcet will be saved in the array.- Specified by:
forIdx
in interfacePackedArray<Point3D_F64>
- Parameters:
idx0
- Initial index. Inclusiveidx1
- Last index, Exclusiveop
- The operation to process each element
-