Class PackedBigArrayPoint3D_F64

java.lang.Object
georegression.struct.packed.PackedBigArray_F64<Point3D_F64>
georegression.struct.packed.PackedBigArrayPoint3D_F64
All Implemented Interfaces:
PackedArray<Point3D_F64>, LArrayAccessor<Point3D_F64>

public class PackedBigArrayPoint3D_F64 extends PackedBigArray_F64<Point3D_F64>
Packed array of Point3D_F64. Internally the point is stored in an interleaved format.
  • 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

      public PackedBigArrayPoint3D_F64(int reservedPoints, int blockSize, BigDogGrowth growth)
      Constructor which allows access to all array parameters
      Parameters:
      reservedPoints - Reserve space to store this number of points initially
      blockSize - A single block will be able to store this number of points
      growth - 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, double z)
    • append

      public void append(GeoTuple3D_F64<?> element)
    • set

      public void set(int index, double x, double y, double z)
    • set

      public void set(int index, Point3D_F64 element)
      Description copied from interface: PackedArray
      Sets an element's value
    • appendAll

      public <T extends GeoTuple3D_F64<T>> void appendAll(Collection<T> collection)
      Adds all the points in the collection
    • append

      public void append(Point3D_F64 element)
      Description copied from interface: PackedArray
      Appends a copy to the end of the array
      Parameters:
      element - (Input) The element which is copied then added
    • getTemp

      public Point3D_F64 getTemp(int index)
    • getCopy

      public void getCopy(int index, Point3D_F64 dst)
    • getCopy

      public void getCopy(int index, GeoTuple3D_F64<?> dst)
    • copy

      public void copy(Point3D_F64 src, Point3D_F64 dst)
    • size

      public int size()
      Specified by:
      size in interface LArrayAccessor<Point3D_F64>
      Overrides:
      size in class PackedBigArray_F64<Point3D_F64>
    • getElementType

      public Class<Point3D_F64> getElementType()
    • forIdx

      public void forIdx(int idx0, int idx1, PackedArray.ProcessIndex<Point3D_F64> op)
      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.
      Parameters:
      idx0 - Initial index. Inclusive
      idx1 - Last index, Exclusive
      op - The operation to process each element