Package boofcv.struct.packed
Class PackedArrayPoint2D_I32
java.lang.Object
boofcv.struct.packed.PackedArrayPoint2D_I32
- All Implemented Interfaces:
PackedArray<Point2D_I32>,LArrayAccessor<Point2D_I32>
Packed array of
Point2D_I32. Internally the point is stored in an interleaved format.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidappend(int x, int y) voidappend(Point2D_I32 element) Appends a copy to the end of the arrayvoidcopy(Point2D_I32 src, Point2D_I32 dst) voidforIdx(int idx0, int idx1, BoofLambdas.ProcessIndex<Point2D_I32> op) Passes in each object and index within the specified range.voidgetCopy(int index, Point2D_I32 dst) getTemp(int index) voidreserve(int numTuples) 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_I32 element) Sets an element's valueintsize()
-
Field Details
-
array
-
temp
-
numElements
protected int numElements
-
-
Constructor Details
-
PackedArrayPoint2D_I32
public PackedArrayPoint2D_I32()
-
-
Method Details
-
reset
public void reset()Description copied from interface:PackedArrayResets the array's size to be zero- Specified by:
resetin interfacePackedArray<Point2D_I32>
-
reserve
public void reserve(int numTuples) 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_I32>- Parameters:
numTuples- Minimum number of elements allocated to the array
-
append
public final void append(int x, int y) -
append
Description copied from interface:PackedArrayAppends a copy to the end of the array- Specified by:
appendin interfacePackedArray<Point2D_I32>- 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_I32>
-
getTemp
- Specified by:
getTempin interfaceLArrayAccessor<Point2D_I32>
-
getCopy
- Specified by:
getCopyin interfaceLArrayAccessor<Point2D_I32>
-
copy
- Specified by:
copyin interfaceLArrayAccessor<Point2D_I32>
-
size
public int size()- Specified by:
sizein interfaceLArrayAccessor<Point2D_I32>
-
getElementType
- Specified by:
getElementTypein interfaceLArrayAccessor<Point2D_I32>
-
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_I32>- Parameters:
idx0- Initial index. Inclusiveidx1- Last index, Exclusiveop- The operation to process each element
-