public class AIVector3D
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct aiVector3D {
float x;
float y;
float z;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIVector3D.Buffer
An array of
AIVector3D 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.
|
static int |
Z
The struct member offsets.
|
| Constructor and Description |
|---|
AIVector3D(java.nio.ByteBuffer container)
Creates a
AIVector3D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIVector3D |
calloc()
Returns a new
AIVector3D instance allocated with memCalloc. |
static AIVector3D.Buffer |
calloc(int capacity)
Returns a new
AIVector3D.Buffer instance allocated with memCalloc. |
static AIVector3D |
callocStack()
Returns a new
AIVector3D instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIVector3D.Buffer |
callocStack(int capacity)
Returns a new
AIVector3D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIVector3D.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIVector3D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIVector3D |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIVector3D instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIVector3D |
create()
Returns a new
AIVector3D instance allocated with BufferUtils. |
static AIVector3D.Buffer |
create(int capacity)
Returns a new
AIVector3D.Buffer instance allocated with BufferUtils. |
static AIVector3D |
create(long address)
Returns a new
AIVector3D instance for the specified memory address. |
static AIVector3D.Buffer |
create(long address,
int capacity)
Create a
AIVector3D.Buffer instance at the specified memory. |
static AIVector3D |
createSafe(long address)
|
static AIVector3D.Buffer |
createSafe(long address,
int capacity)
|
static AIVector3D |
malloc()
Returns a new
AIVector3D instance allocated with memAlloc. |
static AIVector3D.Buffer |
malloc(int capacity)
Returns a new
AIVector3D.Buffer instance allocated with memAlloc. |
static AIVector3D |
mallocStack()
Returns a new
AIVector3D instance allocated on the thread-local MemoryStack. |
static AIVector3D.Buffer |
mallocStack(int capacity)
Returns a new
AIVector3D.Buffer instance allocated on the thread-local MemoryStack. |
static AIVector3D.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIVector3D.Buffer instance allocated on the specified MemoryStack. |
static AIVector3D |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIVector3D instance allocated on the specified MemoryStack. |
static float |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
float value)
Unsafe version of
x. |
static float |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
float value)
Unsafe version of
y. |
static float |
nz(long struct)
Unsafe version of
z(). |
static void |
nz(long struct,
float value)
Unsafe version of
z. |
AIVector3D |
set(AIVector3D src)
Copies the specified struct data to this struct.
|
AIVector3D |
set(float x,
float y,
float z)
Initializes this struct with the specified values.
|
int |
sizeof() |
float |
x()
Returns the value of the
x field. |
AIVector3D |
x(float value)
Sets the specified value to the
x field. |
float |
y()
Returns the value of the
y field. |
AIVector3D |
y(float value)
Sets the specified value to the
y field. |
float |
z()
Returns the value of the
z field. |
AIVector3D |
z(float value)
Sets the specified value to the
z field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public static final int Z
public AIVector3D(java.nio.ByteBuffer container)
AIVector3D 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 float z()
z field.public AIVector3D x(float value)
x field.public AIVector3D y(float value)
y field.public AIVector3D z(float value)
z field.public AIVector3D set(float x, float y, float z)
public AIVector3D set(AIVector3D src)
src - the source structpublic static AIVector3D malloc()
AIVector3D instance allocated with memAlloc. The instance must be explicitly freed.public static AIVector3D calloc()
AIVector3D instance allocated with memCalloc. The instance must be explicitly freed.public static AIVector3D create()
AIVector3D instance allocated with BufferUtils.public static AIVector3D create(long address)
AIVector3D instance for the specified memory address.@Nullable public static AIVector3D createSafe(long address)
public static AIVector3D.Buffer malloc(int capacity)
AIVector3D.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIVector3D.Buffer calloc(int capacity)
AIVector3D.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIVector3D.Buffer create(int capacity)
AIVector3D.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIVector3D.Buffer create(long address, int capacity)
AIVector3D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIVector3D.Buffer createSafe(long address, int capacity)
public static AIVector3D mallocStack()
AIVector3D instance allocated on the thread-local MemoryStack.public static AIVector3D callocStack()
AIVector3D instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIVector3D mallocStack(org.lwjgl.system.MemoryStack stack)
AIVector3D instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIVector3D callocStack(org.lwjgl.system.MemoryStack stack)
AIVector3D instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIVector3D.Buffer mallocStack(int capacity)
AIVector3D.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIVector3D.Buffer callocStack(int capacity)
AIVector3D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIVector3D.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIVector3D.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIVector3D.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIVector3D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static float nx(long struct)
x().public static float ny(long struct)
y().public static float nz(long struct)
z().public static void nx(long struct,
float value)
x.public static void ny(long struct,
float value)
y.public static void nz(long struct,
float value)
z.Copyright LWJGL. All Rights Reserved. License terms.