Package georegression.struct.packed
Class PackedBigArrayPoint2D_F64
java.lang.Object
georegression.struct.packed.PackedBigArray_F64<Point2D_F64>
georegression.struct.packed.PackedBigArrayPoint2D_F64
- All Implemented Interfaces:
PackedArray<Point2D_F64>,LArrayAccessor<Point2D_F64>
Packed array of
Point2D_F64. Internally the point is stored in an interleaved format.-
Nested Class Summary
Nested classes/interfaces inherited from interface georegression.struct.packed.PackedArray
PackedArray.ProcessIndex<T> -
Field Summary
Fields inherited from class georegression.struct.packed.PackedBigArray_F64
array, DOF -
Constructor Summary
ConstructorsConstructorDescriptionConstructor where the default is used for all parameters.PackedBigArrayPoint2D_F64(int reservedPoints) Constructor where the initial number of points is specified and everything else is defaultPackedBigArrayPoint2D_F64(int reservedPoints, int blockSize, BigDogGrowth growth) Constructor which allows access to all array parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(double x, double y) voidappend(Point2D_F64 element) Appends a copy to the end of the arrayvoidcopy(Point2D_F64 src, Point2D_F64 dst) voidforIdx(int idx0, int idx1, PackedArray.ProcessIndex<Point2D_F64> op) Passes in each object and index within the specified range.voidgetCopy(int index, Point2D_F64 dst) getTemp(int index) voidset(int index, double x, double y) voidset(int index, Point2D_F64 element) Sets an element's valueMakes this array have a value identical to 'src'Methods inherited from class georegression.struct.packed.PackedBigArray_F64
isEquals, isEquals, removeSwap, reserve, reset, resize, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddogleg.struct.LArrayAccessor
isEmpty, isNotEmpty
-
Constructor Details
-
PackedBigArrayPoint2D_F64
public PackedBigArrayPoint2D_F64()Constructor where the default is used for all parameters. -
PackedBigArrayPoint2D_F64
public PackedBigArrayPoint2D_F64(int reservedPoints) Constructor where the initial number of points is specified and everything else is default -
PackedBigArrayPoint2D_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'
-
append
public void append(double x, double y) -
set
public void set(int index, double x, double y) -
append
Description copied from interface:PackedArrayAppends a copy to the end of the array- Parameters:
element- (Input) The element which is copied then added
-
set
Description copied from interface:PackedArraySets an element's value -
getTemp
-
getCopy
-
copy
-
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.- Parameters:
idx0- Initial index. Inclusiveidx1- Last index, Exclusiveop- The operation to process each element
-
getElementType
-