Skip to main content

Point3Buffer

class Point3Buffer

A Point3Buffer is a NativeFloatBuffer adapter and Point3 array that instead of being allocated in Java's heap memory is allocated in native memory, so if you need to use more memory than the available heap memory, use Point3Buffer and you will be able to use 100% of device ram memory.


public class Point3Buffer

— Constructors (1) —

ConstructorDescription
Point3Buffer()Creates a new Point3Buffer.

— Methods (13) —

NameDescription
Point3 get(int idx)Returns the current value of the three axes of the position Point3Buffer defined to be "idx" argument.
float getX(int idx)Returns the current value of the X axis of the position Point3Buffer defined to be "idx" argument.
float getY(int idx)Returns the current value of the Y axis of the position Point3Buffer defined to be "idx" argument.
float getZ(int idx)Returns the current value of the Z axis of the position Point3Buffer defined to be "idx" argument.
void put(Point3 value)Places a value defined to be "value" argument sequentially in the Point3Buffer.
void put(int x, int y, int z)Places the X axis value defined to be "x" argument, Y axis to be "y" argument, and Z axis to be "z" argument sequentially in the Point3Buffer.
void set(int idx, Point3 value)Sets the current value of Point3Buffer to be "value" argument and its current position to be "idx" argument.
void set(int idx, int x, int y, int z)Sets the current value of X axis to be "x" argument, Y axis to be "y" argument, Z axis to be "z" argument of the Point3Buffer and its current position to be "idx" argument.
int capacity()Returns the maximum Point3Buffer capacity value.
Point3[] array()Returns an array of current Point3Buffer values.
void position(int idx)Returns the current value of the three axes of the position Point3Buffer defined to be "idx" argument.
boolean isVboEnabled()Returns true if the vbo of Point3Buffer is enabled, false if not.
void setVboEnabled(boolean value)Defines if Vector3Buffer's vbo will be enabled or disabled to be "value" argument.