Package org.lwjgl.assimp
Class AIMatrix3x3
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMatrix3x3
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
public class AIMatrix3x3 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Represents a row-major 3x3 matrix.Layout
struct aiMatrix3x3 { float a1; float a2; float a3; float b1; float b2; float b3; float c1; float c2; float c3; float d1; float d2; float d3; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
AIMatrix3x3.Buffer
An array ofAIMatrix3x3
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor and Description AIMatrix3x3(java.nio.ByteBuffer container)
Creates aAIMatrix3x3
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description float
a1()
Returns the value of thea1
field.AIMatrix3x3
a1(float value)
Sets the specified value to thea1
field.float
a2()
Returns the value of thea2
field.AIMatrix3x3
a2(float value)
Sets the specified value to thea2
field.float
a3()
Returns the value of thea3
field.AIMatrix3x3
a3(float value)
Sets the specified value to thea3
field.float
b1()
Returns the value of theb1
field.AIMatrix3x3
b1(float value)
Sets the specified value to theb1
field.float
b2()
Returns the value of theb2
field.AIMatrix3x3
b2(float value)
Sets the specified value to theb2
field.float
b3()
Returns the value of theb3
field.AIMatrix3x3
b3(float value)
Sets the specified value to theb3
field.float
c1()
Returns the value of thec1
field.AIMatrix3x3
c1(float value)
Sets the specified value to thec1
field.float
c2()
Returns the value of thec2
field.AIMatrix3x3
c2(float value)
Sets the specified value to thec2
field.float
c3()
Returns the value of thec3
field.AIMatrix3x3
c3(float value)
Sets the specified value to thec3
field.static AIMatrix3x3
calloc()
Returns a newAIMatrix3x3
instance allocated withmemCalloc
.static AIMatrix3x3.Buffer
calloc(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withmemCalloc
.static AIMatrix3x3
callocStack()
Returns a newAIMatrix3x3
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMatrix3x3.Buffer
callocStack(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMatrix3x3.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMatrix3x3
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMatrix3x3
create()
Returns a newAIMatrix3x3
instance allocated withBufferUtils
.static AIMatrix3x3.Buffer
create(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withBufferUtils
.static AIMatrix3x3
create(long address)
Returns a newAIMatrix3x3
instance for the specified memory address.static AIMatrix3x3.Buffer
create(long address, int capacity)
Create aAIMatrix3x3.Buffer
instance at the specified memory.static AIMatrix3x3
createSafe(long address)
static AIMatrix3x3.Buffer
createSafe(long address, int capacity)
float
d1()
Returns the value of thed1
field.AIMatrix3x3
d1(float value)
Sets the specified value to thed1
field.float
d2()
Returns the value of thed2
field.AIMatrix3x3
d2(float value)
Sets the specified value to thed2
field.float
d3()
Returns the value of thed3
field.AIMatrix3x3
d3(float value)
Sets the specified value to thed3
field.static AIMatrix3x3
malloc()
Returns a newAIMatrix3x3
instance allocated withmemAlloc
.static AIMatrix3x3.Buffer
malloc(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withmemAlloc
.static AIMatrix3x3
mallocStack()
Returns a newAIMatrix3x3
instance allocated on the thread-localMemoryStack
.static AIMatrix3x3.Buffer
mallocStack(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated on the thread-localMemoryStack
.static AIMatrix3x3.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3.Buffer
instance allocated on the specifiedMemoryStack
.static AIMatrix3x3
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3
instance allocated on the specifiedMemoryStack
.AIMatrix3x3
set(AIMatrix3x3 src)
Copies the specified struct data to this struct.AIMatrix3x3
set(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3, float d1, float d2, float d3)
Initializes this struct with the specified values.int
sizeof()
-
-
-
Constructor Detail
-
AIMatrix3x3
public AIMatrix3x3(java.nio.ByteBuffer container)
Creates aAIMatrix3x3
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 thea1
field.
-
a2
public float a2()
Returns the value of thea2
field.
-
a3
public float a3()
Returns the value of thea3
field.
-
b1
public float b1()
Returns the value of theb1
field.
-
b2
public float b2()
Returns the value of theb2
field.
-
b3
public float b3()
Returns the value of theb3
field.
-
c1
public float c1()
Returns the value of thec1
field.
-
c2
public float c2()
Returns the value of thec2
field.
-
c3
public float c3()
Returns the value of thec3
field.
-
d1
public float d1()
Returns the value of thed1
field.
-
d2
public float d2()
Returns the value of thed2
field.
-
d3
public float d3()
Returns the value of thed3
field.
-
a1
public AIMatrix3x3 a1(float value)
Sets the specified value to thea1
field.
-
a2
public AIMatrix3x3 a2(float value)
Sets the specified value to thea2
field.
-
a3
public AIMatrix3x3 a3(float value)
Sets the specified value to thea3
field.
-
b1
public AIMatrix3x3 b1(float value)
Sets the specified value to theb1
field.
-
b2
public AIMatrix3x3 b2(float value)
Sets the specified value to theb2
field.
-
b3
public AIMatrix3x3 b3(float value)
Sets the specified value to theb3
field.
-
c1
public AIMatrix3x3 c1(float value)
Sets the specified value to thec1
field.
-
c2
public AIMatrix3x3 c2(float value)
Sets the specified value to thec2
field.
-
c3
public AIMatrix3x3 c3(float value)
Sets the specified value to thec3
field.
-
d1
public AIMatrix3x3 d1(float value)
Sets the specified value to thed1
field.
-
d2
public AIMatrix3x3 d2(float value)
Sets the specified value to thed2
field.
-
d3
public AIMatrix3x3 d3(float value)
Sets the specified value to thed3
field.
-
set
public AIMatrix3x3 set(float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3, float d1, float d2, float d3)
Initializes this struct with the specified values.
-
set
public AIMatrix3x3 set(AIMatrix3x3 src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIMatrix3x3 malloc()
Returns a newAIMatrix3x3
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMatrix3x3 calloc()
Returns a newAIMatrix3x3
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMatrix3x3 create()
Returns a newAIMatrix3x3
instance allocated withBufferUtils
.
-
create
public static AIMatrix3x3 create(long address)
Returns a newAIMatrix3x3
instance for the specified memory address.
-
createSafe
@Nullable public static AIMatrix3x3 createSafe(long address)
-
malloc
public static AIMatrix3x3.Buffer malloc(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMatrix3x3.Buffer calloc(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMatrix3x3.Buffer create(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMatrix3x3.Buffer create(long address, int capacity)
Create aAIMatrix3x3.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIMatrix3x3.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIMatrix3x3 mallocStack()
Returns a newAIMatrix3x3
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIMatrix3x3 callocStack()
Returns a newAIMatrix3x3
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIMatrix3x3 mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIMatrix3x3 callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static AIMatrix3x3.Buffer mallocStack(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIMatrix3x3.Buffer callocStack(int capacity)
Returns a newAIMatrix3x3.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static AIMatrix3x3.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static AIMatrix3x3.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMatrix3x3.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-