Skip to main content

Vector2Buffer

Complete API reference for Vector2Buffer, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Vector

Component: no


public class Vector2Buffer

Constructors

SignatureDescription
Vector2Buffer(Vector2Buffer)Executes Vector2Buffer and returns after the underlying engine call finishes.
Vector2Buffer(Engine)Executes Vector2Buffer and returns after the underlying engine call finishes.
Vector2Buffer(int)Creates a new instance of Vector2Buffer.
Vector2Buffer(NativeFloatBuffer)Creates a new instance of Vector2Buffer.

Attributes

NameTypeDescription
bufferVector2BufferRepresents the buffer value stored on this instance. Read or assign to update the property.

Methods

SignatureReturnsDescription
get(int)Vector2Returns the current value.
getX(int)floatReturns the current x.
getY(int)floatReturns the current y.
put(Vector2)voidSets or updates the the value.
put(float, float)voidSets or updates the the value.
set(int, Vector2)voidSets or updates the the value.
set(int, float, float)voidSets or updates the the value.
capacity()intExecutes capacity and returns after the underlying engine call finishes.
array()Vector2[]Executes array and returns after the underlying engine call finishes.
position(int)voidPerforms the position operation using the provided parameters (idx).
copy()Vector2BufferReturns a copy of this Vector2Buffer instance.
getFloatBuffer()JAVARuntime.NativeFloatBufferReturns the current float buffer.