Vector2Buffer
Complete API reference for Vector2Buffer, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Vector
Component: no
public class Vector2Buffer
Constructors
| Signature | Description |
|---|---|
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
| Name | Type | Description |
|---|---|---|
buffer | Vector2Buffer | Represents the buffer value stored on this instance. Read or assign to update the property. |
Methods
| Signature | Returns | Description |
|---|---|---|
get(int) | Vector2 | Returns the current value. |
getX(int) | float | Returns the current x. |
getY(int) | float | Returns the current y. |
put(Vector2) | void | Sets or updates the the value. |
put(float, float) | void | Sets or updates the the value. |
set(int, Vector2) | void | Sets or updates the the value. |
set(int, float, float) | void | Sets or updates the the value. |
capacity() | int | Executes capacity and returns after the underlying engine call finishes. |
array() | Vector2[] | Executes array and returns after the underlying engine call finishes. |
position(int) | void | Performs the position operation using the provided parameters (idx). |
copy() | Vector2Buffer | Returns a copy of this Vector2Buffer instance. |
getFloatBuffer() | JAVARuntime.NativeFloatBuffer | Returns the current float buffer. |