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