Package org.lwjgl.assimp
Class AIMatrix4x4
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMatrix4x4
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AIMatrix4x4 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Represents a row-major 4x4 matrix, use this for homogeneous coordinates.Layout
struct aiMatrix4x4 { float a1; float a2; float a3; float a4; float b1; float b2; float b3; float b4; float c1; float c2; float c3; float c4; float d1; float d2; float d3; float d4; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIMatrix4x4.Buffer
An array ofAIMatrix4x4
structs.
-
Constructor Summary
Constructors Constructor Description AIMatrix4x4(java.nio.ByteBuffer container)
Creates aAIMatrix4x4
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description float
a1()
AIMatrix4x4
a1(float value)
Sets the specified value to thea1
field.float
a2()
AIMatrix4x4
a2(float value)
Sets the specified value to thea2
field.float
a3()
AIMatrix4x4
a3(float value)
Sets the specified value to thea3
field.float
a4()
AIMatrix4x4
a4(float value)
Sets the specified value to thea4
field.float
b1()
AIMatrix4x4
b1(float value)
Sets the specified value to theb1
field.float
b2()
AIMatrix4x4
b2(float value)
Sets the specified value to theb2
field.float
b3()
AIMatrix4x4
b3(float value)
Sets the specified value to theb3
field.float
b4()
AIMatrix4x4
b4(float value)
Sets the specified value to theb4
field.float
c1()
AIMatrix4x4
c1(float value)
Sets the specified value to thec1
field.float
c2()
AIMatrix4x4
c2(float value)
Sets the specified value to thec2
field.float
c3()
AIMatrix4x4
c3(float value)
Sets the specified value to thec3
field.float
c4()
AIMatrix4x4
c4(float value)
Sets the specified value to thec4
field.static AIMatrix4x4
calloc()
Returns a newAIMatrix4x4
instance allocated withmemCalloc
.static AIMatrix4x4.Buffer
calloc(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withmemCalloc
.static AIMatrix4x4.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMatrix4x4
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMatrix4x4
callocStack()
Deprecated.static AIMatrix4x4.Buffer
callocStack(int capacity)
Deprecated.static AIMatrix4x4.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMatrix4x4
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMatrix4x4
create()
Returns a newAIMatrix4x4
instance allocated withBufferUtils
.static AIMatrix4x4.Buffer
create(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withBufferUtils
.static AIMatrix4x4
create(long address)
Returns a newAIMatrix4x4
instance for the specified memory address.static AIMatrix4x4.Buffer
create(long address, int capacity)
Create aAIMatrix4x4.Buffer
instance at the specified memory.static AIMatrix4x4
createSafe(long address)
static AIMatrix4x4.Buffer
createSafe(long address, int capacity)
float
d1()
AIMatrix4x4
d1(float value)
Sets the specified value to thed1
field.float
d2()
AIMatrix4x4
d2(float value)
Sets the specified value to thed2
field.float
d3()
AIMatrix4x4
d3(float value)
Sets the specified value to thed3
field.float
d4()
AIMatrix4x4
d4(float value)
Sets the specified value to thed4
field.static AIMatrix4x4
malloc()
Returns a newAIMatrix4x4
instance allocated withmemAlloc
.static AIMatrix4x4.Buffer
malloc(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withmemAlloc
.static AIMatrix4x4.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4.Buffer
instance allocated on the specifiedMemoryStack
.static AIMatrix4x4
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4
instance allocated on the specifiedMemoryStack
.static AIMatrix4x4
mallocStack()
Deprecated.static AIMatrix4x4.Buffer
mallocStack(int capacity)
Deprecated.static AIMatrix4x4.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMatrix4x4
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static float
na1(long struct)
Unsafe version ofa1()
.static void
na1(long struct, float value)
Unsafe version ofa1
.static float
na2(long struct)
Unsafe version ofa2()
.static void
na2(long struct, float value)
Unsafe version ofa2
.static float
na3(long struct)
Unsafe version ofa3()
.static void
na3(long struct, float value)
Unsafe version ofa3
.static float
na4(long struct)
Unsafe version ofa4()
.static void
na4(long struct, float value)
Unsafe version ofa4
.static float
nb1(long struct)
Unsafe version ofb1()
.static void
nb1(long struct, float value)
Unsafe version ofb1
.static float
nb2(long struct)
Unsafe version ofb2()
.static void
nb2(long struct, float value)
Unsafe version ofb2
.static float
nb3(long struct)
Unsafe version ofb3()
.static void
nb3(long struct, float value)
Unsafe version ofb3
.static float
nb4(long struct)
Unsafe version ofb4()
.static void
nb4(long struct, float value)
Unsafe version ofb4
.static float
nc1(long struct)
Unsafe version ofc1()
.static void
nc1(long struct, float value)
Unsafe version ofc1
.static float
nc2(long struct)
Unsafe version ofc2()
.static void
nc2(long struct, float value)
Unsafe version ofc2
.static float
nc3(long struct)
Unsafe version ofc3()
.static void
nc3(long struct, float value)
Unsafe version ofc3
.static float
nc4(long struct)
Unsafe version ofc4()
.static void
nc4(long struct, float value)
Unsafe version ofc4
.static float
nd1(long struct)
Unsafe version ofd1()
.static void
nd1(long struct, float value)
Unsafe version ofd1
.static float
nd2(long struct)
Unsafe version ofd2()
.static void
nd2(long struct, float value)
Unsafe version ofd2
.static float
nd3(long struct)
Unsafe version ofd3()
.static void
nd3(long struct, float value)
Unsafe version ofd3
.static float
nd4(long struct)
Unsafe version ofd4()
.static void
nd4(long struct, float value)
Unsafe version ofd4
.AIMatrix4x4
set(float a1, float a2, float a3, float a4, float b1, float b2, float b3, float b4, float c1, float c2, float c3, float c4, float d1, float d2, float d3, float d4)
Initializes this struct with the specified values.AIMatrix4x4
set(AIMatrix4x4 src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
AIMatrix4x4
public AIMatrix4x4(java.nio.ByteBuffer container)
Creates aAIMatrix4x4
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
a1
public float a1()
- Returns:
- the value of the
a1
field.
-
a2
public float a2()
- Returns:
- the value of the
a2
field.
-
a3
public float a3()
- Returns:
- the value of the
a3
field.
-
a4
public float a4()
- Returns:
- the value of the
a4
field.
-
b1
public float b1()
- Returns:
- the value of the
b1
field.
-
b2
public float b2()
- Returns:
- the value of the
b2
field.
-
b3
public float b3()
- Returns:
- the value of the
b3
field.
-
b4
public float b4()
- Returns:
- the value of the
b4
field.
-
c1
public float c1()
- Returns:
- the value of the
c1
field.
-
c2
public float c2()
- Returns:
- the value of the
c2
field.
-
c3
public float c3()
- Returns:
- the value of the
c3
field.
-
c4
public float c4()
- Returns:
- the value of the
c4
field.
-
d1
public float d1()
- Returns:
- the value of the
d1
field.
-
d2
public float d2()
- Returns:
- the value of the
d2
field.
-
d3
public float d3()
- Returns:
- the value of the
d3
field.
-
d4
public float d4()
- Returns:
- the value of the
d4
field.
-
a1
public AIMatrix4x4 a1(float value)
Sets the specified value to thea1
field.
-
a2
public AIMatrix4x4 a2(float value)
Sets the specified value to thea2
field.
-
a3
public AIMatrix4x4 a3(float value)
Sets the specified value to thea3
field.
-
a4
public AIMatrix4x4 a4(float value)
Sets the specified value to thea4
field.
-
b1
public AIMatrix4x4 b1(float value)
Sets the specified value to theb1
field.
-
b2
public AIMatrix4x4 b2(float value)
Sets the specified value to theb2
field.
-
b3
public AIMatrix4x4 b3(float value)
Sets the specified value to theb3
field.
-
b4
public AIMatrix4x4 b4(float value)
Sets the specified value to theb4
field.
-
c1
public AIMatrix4x4 c1(float value)
Sets the specified value to thec1
field.
-
c2
public AIMatrix4x4 c2(float value)
Sets the specified value to thec2
field.
-
c3
public AIMatrix4x4 c3(float value)
Sets the specified value to thec3
field.
-
c4
public AIMatrix4x4 c4(float value)
Sets the specified value to thec4
field.
-
d1
public AIMatrix4x4 d1(float value)
Sets the specified value to thed1
field.
-
d2
public AIMatrix4x4 d2(float value)
Sets the specified value to thed2
field.
-
d3
public AIMatrix4x4 d3(float value)
Sets the specified value to thed3
field.
-
d4
public AIMatrix4x4 d4(float value)
Sets the specified value to thed4
field.
-
set
public AIMatrix4x4 set(float a1, float a2, float a3, float a4, float b1, float b2, float b3, float b4, float c1, float c2, float c3, float c4, float d1, float d2, float d3, float d4)
Initializes this struct with the specified values.
-
set
public AIMatrix4x4 set(AIMatrix4x4 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIMatrix4x4 malloc()
Returns a newAIMatrix4x4
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMatrix4x4 calloc()
Returns a newAIMatrix4x4
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMatrix4x4 create()
Returns a newAIMatrix4x4
instance allocated withBufferUtils
.
-
create
public static AIMatrix4x4 create(long address)
Returns a newAIMatrix4x4
instance for the specified memory address.
-
createSafe
@Nullable public static AIMatrix4x4 createSafe(long address)
-
malloc
public static AIMatrix4x4.Buffer malloc(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMatrix4x4.Buffer calloc(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMatrix4x4.Buffer create(int capacity)
Returns a newAIMatrix4x4.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMatrix4x4.Buffer create(long address, int capacity)
Create aAIMatrix4x4.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIMatrix4x4.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMatrix4x4 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIMatrix4x4 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIMatrix4x4 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead.
-
callocStack
@Deprecated public static AIMatrix4x4 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIMatrix4x4.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static AIMatrix4x4.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
mallocStack
@Deprecated public static AIMatrix4x4.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead.
-
callocStack
@Deprecated public static AIMatrix4x4.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead.
-
malloc
public static AIMatrix4x4 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIMatrix4x4 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static AIMatrix4x4.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static AIMatrix4x4.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix4x4.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
na1
public static float na1(long struct)
Unsafe version ofa1()
.
-
na2
public static float na2(long struct)
Unsafe version ofa2()
.
-
na3
public static float na3(long struct)
Unsafe version ofa3()
.
-
na4
public static float na4(long struct)
Unsafe version ofa4()
.
-
nb1
public static float nb1(long struct)
Unsafe version ofb1()
.
-
nb2
public static float nb2(long struct)
Unsafe version ofb2()
.
-
nb3
public static float nb3(long struct)
Unsafe version ofb3()
.
-
nb4
public static float nb4(long struct)
Unsafe version ofb4()
.
-
nc1
public static float nc1(long struct)
Unsafe version ofc1()
.
-
nc2
public static float nc2(long struct)
Unsafe version ofc2()
.
-
nc3
public static float nc3(long struct)
Unsafe version ofc3()
.
-
nc4
public static float nc4(long struct)
Unsafe version ofc4()
.
-
nd1
public static float nd1(long struct)
Unsafe version ofd1()
.
-
nd2
public static float nd2(long struct)
Unsafe version ofd2()
.
-
nd3
public static float nd3(long struct)
Unsafe version ofd3()
.
-
nd4
public static float nd4(long struct)
Unsafe version ofd4()
.
-
na1
public static void na1(long struct, float value)
Unsafe version ofa1
.
-
na2
public static void na2(long struct, float value)
Unsafe version ofa2
.
-
na3
public static void na3(long struct, float value)
Unsafe version ofa3
.
-
na4
public static void na4(long struct, float value)
Unsafe version ofa4
.
-
nb1
public static void nb1(long struct, float value)
Unsafe version ofb1
.
-
nb2
public static void nb2(long struct, float value)
Unsafe version ofb2
.
-
nb3
public static void nb3(long struct, float value)
Unsafe version ofb3
.
-
nb4
public static void nb4(long struct, float value)
Unsafe version ofb4
.
-
nc1
public static void nc1(long struct, float value)
Unsafe version ofc1
.
-
nc2
public static void nc2(long struct, float value)
Unsafe version ofc2
.
-
nc3
public static void nc3(long struct, float value)
Unsafe version ofc3
.
-
nc4
public static void nc4(long struct, float value)
Unsafe version ofc4
.
-
nd1
public static void nd1(long struct, float value)
Unsafe version ofd1
.
-
nd2
public static void nd2(long struct, float value)
Unsafe version ofd2
.
-
nd3
public static void nd3(long struct, float value)
Unsafe version ofd3
.
-
nd4
public static void nd4(long struct, float value)
Unsafe version ofd4
.
-
-