public class AIVector2D
extends org.lwjgl.system.Struct
struct aiVector2D {
float x;
float y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIVector2D.Buffer
An array of
AIVector2D structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
AIVector2D(java.nio.ByteBuffer container)
Creates a
AIVector2D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIVector2D |
create(long address)
Returns a new
AIVector2D instance for the specified memory address. |
static AIVector2D.Buffer |
create(long address,
int capacity)
Create a
AIVector2D.Buffer instance at the specified memory. |
static AIVector2D |
createSafe(long address)
|
static AIVector2D.Buffer |
createSafe(long address,
int capacity)
|
static float |
nx(long struct)
Unsafe version of
x(). |
static float |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
float |
x()
Returns the value of the
x field. |
float |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public AIVector2D(java.nio.ByteBuffer container)
AIVector2D instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float x()
x field.public float y()
y field.public static AIVector2D create(long address)
AIVector2D instance for the specified memory address.@Nullable public static AIVector2D createSafe(long address)
public static AIVector2D.Buffer create(long address, int capacity)
AIVector2D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIVector2D.Buffer createSafe(long address, int capacity)
public static float nx(long struct)
x().public static float ny(long struct)
y().Copyright LWJGL. All Rights Reserved. License terms.