Package com.raylib
Class Matrix
java.lang.Object
com.raylib.Matrix
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionMatrix()
Construct with auto memory allocator and fields initialized to zero.Matrix
(float m0, float m4, float m8, float m12, float m1, float m5, float m9, float m13, float m2, float m6, float m10, float m14, float m3, float m7, float m11, float m15) Construct with auto memory allocator and fields initialized as specifiedMatrix
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectMatrix
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedMatrix
(SegmentAllocator arena, float m0, float m4, float m8, float m12, float m1, float m5, float m9, float m13, float m2, float m6, float m10, float m14, float m3, float m7, float m11, float m15) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix
allocateArray
(long elementCount) Allocate an array of Matrixstatic Matrix
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Matrixboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) float
getM0()
Matrix first row (4 components)float
getM1()
Matrix second row (4 components)float
getM10()
Matrix third row (4 components)float
getM11()
Matrix fourth row (4 components)float
getM12()
Matrix first row (4 components)float
getM13()
Matrix second row (4 components)float
getM14()
Matrix third row (4 components)float
getM15()
Matrix fourth row (4 components)float
getM2()
Matrix third row (4 components)float
getM3()
Matrix fourth row (4 components)float
getM4()
Matrix first row (4 components)float
getM5()
Matrix second row (4 components)float
getM6()
Matrix third row (4 components)float
getM7()
Matrix fourth row (4 components)float
getM8()
Matrix first row (4 components)float
getM9()
Matrix second row (4 components)int
hashCode()
setM0
(float value) Matrix first row (4 components)setM1
(float value) Matrix second row (4 components)setM10
(float value) Matrix third row (4 components)setM11
(float value) Matrix fourth row (4 components)setM12
(float value) Matrix first row (4 components)setM13
(float value) Matrix second row (4 components)setM14
(float value) Matrix third row (4 components)setM15
(float value) Matrix fourth row (4 components)setM2
(float value) Matrix third row (4 components)setM3
(float value) Matrix fourth row (4 components)setM4
(float value) Matrix first row (4 components)setM5
(float value) Matrix second row (4 components)setM6
(float value) Matrix third row (4 components)setM7
(float value) Matrix fourth row (4 components)setM8
(float value) Matrix first row (4 components)setM9
(float value) Matrix second row (4 components)
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
Matrix
public Matrix()Construct with auto memory allocator and fields initialized to zero. -
Matrix
Construct with your owm memory allocator and fields not initialized -
Matrix
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Matrix
public Matrix(float m0, float m4, float m8, float m12, float m1, float m5, float m9, float m13, float m2, float m6, float m10, float m14, float m3, float m7, float m11, float m15) Construct with auto memory allocator and fields initialized as specified- Parameters:
m0
- Matrix first row (4 components)m4
- Matrix first row (4 components)m8
- Matrix first row (4 components)m12
- Matrix first row (4 components)m1
- Matrix second row (4 components)m5
- Matrix second row (4 components)m9
- Matrix second row (4 components)m13
- Matrix second row (4 components)m2
- Matrix third row (4 components)m6
- Matrix third row (4 components)m10
- Matrix third row (4 components)m14
- Matrix third row (4 components)m3
- Matrix fourth row (4 components)m7
- Matrix fourth row (4 components)m11
- Matrix fourth row (4 components)m15
- Matrix fourth row (4 components)
-
Matrix
public Matrix(SegmentAllocator arena, float m0, float m4, float m8, float m12, float m1, float m5, float m9, float m13, float m2, float m6, float m10, float m14, float m3, float m7, float m11, float m15) Construct with your own memory allocator and fields initialized as specified- Parameters:
m0
- Matrix first row (4 components)m4
- Matrix first row (4 components)m8
- Matrix first row (4 components)m12
- Matrix first row (4 components)m1
- Matrix second row (4 components)m5
- Matrix second row (4 components)m9
- Matrix second row (4 components)m13
- Matrix second row (4 components)m2
- Matrix third row (4 components)m6
- Matrix third row (4 components)m10
- Matrix third row (4 components)m14
- Matrix third row (4 components)m3
- Matrix fourth row (4 components)m7
- Matrix fourth row (4 components)m11
- Matrix fourth row (4 components)m15
- Matrix fourth row (4 components)
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Matrix -
allocateArray
Allocate an array of Matrix -
getM0
public float getM0()Matrix first row (4 components) -
setM0
Matrix first row (4 components) -
getM4
public float getM4()Matrix first row (4 components) -
setM4
Matrix first row (4 components) -
getM8
public float getM8()Matrix first row (4 components) -
setM8
Matrix first row (4 components) -
getM12
public float getM12()Matrix first row (4 components) -
setM12
Matrix first row (4 components) -
getM1
public float getM1()Matrix second row (4 components) -
setM1
Matrix second row (4 components) -
getM5
public float getM5()Matrix second row (4 components) -
setM5
Matrix second row (4 components) -
getM9
public float getM9()Matrix second row (4 components) -
setM9
Matrix second row (4 components) -
getM13
public float getM13()Matrix second row (4 components) -
setM13
Matrix second row (4 components) -
getM2
public float getM2()Matrix third row (4 components) -
setM2
Matrix third row (4 components) -
getM6
public float getM6()Matrix third row (4 components) -
setM6
Matrix third row (4 components) -
getM10
public float getM10()Matrix third row (4 components) -
setM10
Matrix third row (4 components) -
getM14
public float getM14()Matrix third row (4 components) -
setM14
Matrix third row (4 components) -
getM3
public float getM3()Matrix fourth row (4 components) -
setM3
Matrix fourth row (4 components) -
getM7
public float getM7()Matrix fourth row (4 components) -
setM7
Matrix fourth row (4 components) -
getM11
public float getM11()Matrix fourth row (4 components) -
setM11
Matrix fourth row (4 components) -
getM15
public float getM15()Matrix fourth row (4 components) -
setM15
Matrix fourth row (4 components)
-