Package boofcv.struct.packed
Class PackedArrayPoint2D_I16
java.lang.Object
boofcv.struct.packed.PackedArrayPoint2D_I16
- All Implemented Interfaces:
PackedArray<Point2D_I16>
,LArrayAccessor<Point2D_I16>
Packed array of
Point2D_I16
. Internally the point is stored in an interleaved format.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
append
(int x, int y) void
append
(Point2D_I16 element) Appends a copy to the end of the arrayvoid
copy
(Point2D_I16 src, Point2D_I16 dst) void
forIdx
(int idx0, int idx1, BoofLambdas.ProcessIndex<Point2D_I16> op) Passes in each object and index within the specified range.void
getCopy
(int index, Point2D_I16 dst) 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 zerovoid
set
(int index, Point2D_I16 element) Sets an element's valueint
size()
-
Field Details
-
array
-
temp
-
numElements
protected int numElements
-
-
Constructor Details
-
PackedArrayPoint2D_I16
public PackedArrayPoint2D_I16()
-
-
Method Details
-
reset
public void reset()Description copied from interface:PackedArray
Resets the array's size to be zero- Specified by:
reset
in interfacePackedArray<Point2D_I16>
-
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<Point2D_I16>
- Parameters:
numTuples
- Minimum number of elements allocated to the array
-
append
public final void append(int x, int y) -
append
Description copied from interface:PackedArray
Appends a copy to the end of the array- Specified by:
append
in interfacePackedArray<Point2D_I16>
- Parameters:
element
- (Input) The element which is copied then added
-
set
Description copied from interface:PackedArray
Sets an element's value- Specified by:
set
in interfacePackedArray<Point2D_I16>
-
getTemp
- Specified by:
getTemp
in interfaceLArrayAccessor<Point2D_I16>
-
getCopy
- Specified by:
getCopy
in interfaceLArrayAccessor<Point2D_I16>
-
copy
- Specified by:
copy
in interfaceLArrayAccessor<Point2D_I16>
-
size
public int size()- Specified by:
size
in interfaceLArrayAccessor<Point2D_I16>
-
getElementType
- Specified by:
getElementType
in interfaceLArrayAccessor<Point2D_I16>
-
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<Point2D_I16>
- Parameters:
idx0
- Initial index. Inclusiveidx1
- Last index, Exclusiveop
- The operation to process each element
-