Class Matrix
java.lang.Object
com.raylib.Matrix
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe 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 MatrixallocateArray(long elementCount) Allocate an array of Matrixstatic MatrixallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of MatrixbooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement(int index) floatgetM0()Matrix first row (4 components)floatgetM1()Matrix second row (4 components)floatgetM10()Matrix third row (4 components)floatgetM11()Matrix fourth row (4 components)floatgetM12()Matrix first row (4 components)floatgetM13()Matrix second row (4 components)floatgetM14()Matrix third row (4 components)floatgetM15()Matrix fourth row (4 components)floatgetM2()Matrix third row (4 components)floatgetM3()Matrix fourth row (4 components)floatgetM4()Matrix first row (4 components)floatgetM5()Matrix second row (4 components)floatgetM6()Matrix third row (4 components)floatgetM7()Matrix fourth row (4 components)floatgetM8()Matrix first row (4 components)floatgetM9()Matrix second row (4 components)inthashCode()floatm0()Matrix first row (4 components)m0(float value) Matrix first row (4 components)floatm1()Matrix second row (4 components)m1(float value) Matrix second row (4 components)floatm10()Matrix third row (4 components)m10(float value) Matrix third row (4 components)floatm11()Matrix fourth row (4 components)m11(float value) Matrix fourth row (4 components)floatm12()Matrix first row (4 components)m12(float value) Matrix first row (4 components)floatm13()Matrix second row (4 components)m13(float value) Matrix second row (4 components)floatm14()Matrix third row (4 components)m14(float value) Matrix third row (4 components)floatm15()Matrix fourth row (4 components)m15(float value) Matrix fourth row (4 components)floatm2()Matrix third row (4 components)m2(float value) Matrix third row (4 components)floatm3()Matrix fourth row (4 components)m3(float value) Matrix fourth row (4 components)floatm4()Matrix first row (4 components)m4(float value) Matrix first row (4 components)floatm5()Matrix second row (4 components)m5(float value) Matrix second row (4 components)floatm6()Matrix third row (4 components)m6(float value) Matrix third row (4 components)floatm7()Matrix fourth row (4 components)m7(float value) Matrix fourth row (4 components)floatm8()Matrix first row (4 components)m8(float value) Matrix first row (4 components)floatm9()Matrix second row (4 components)m9(float value) Matrix second row (4 components)voidsetM0(float value) Matrix first row (4 components)voidsetM1(float value) Matrix second row (4 components)voidsetM10(float value) Matrix third row (4 components)voidsetM11(float value) Matrix fourth row (4 components)voidsetM12(float value) Matrix first row (4 components)voidsetM13(float value) Matrix second row (4 components)voidsetM14(float value) Matrix third row (4 components)voidsetM15(float value) Matrix fourth row (4 components)voidsetM2(float value) Matrix third row (4 components)voidsetM3(float value) Matrix fourth row (4 components)voidsetM4(float value) Matrix first row (4 components)voidsetM5(float value) Matrix second row (4 components)voidsetM6(float value) Matrix third row (4 components)voidsetM7(float value) Matrix fourth row (4 components)voidsetM8(float value) Matrix first row (4 components)voidsetM9(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
public void setM0(float value) Matrix first row (4 components) -
m0
public float m0()Matrix first row (4 components) -
m0
Matrix first row (4 components) -
getM4
public float getM4()Matrix first row (4 components) -
setM4
public void setM4(float value) Matrix first row (4 components) -
m4
public float m4()Matrix first row (4 components) -
m4
Matrix first row (4 components) -
getM8
public float getM8()Matrix first row (4 components) -
setM8
public void setM8(float value) Matrix first row (4 components) -
m8
public float m8()Matrix first row (4 components) -
m8
Matrix first row (4 components) -
getM12
public float getM12()Matrix first row (4 components) -
setM12
public void setM12(float value) Matrix first row (4 components) -
m12
public float m12()Matrix first row (4 components) -
m12
Matrix first row (4 components) -
getM1
public float getM1()Matrix second row (4 components) -
setM1
public void setM1(float value) Matrix second row (4 components) -
m1
public float m1()Matrix second row (4 components) -
m1
Matrix second row (4 components) -
getM5
public float getM5()Matrix second row (4 components) -
setM5
public void setM5(float value) Matrix second row (4 components) -
m5
public float m5()Matrix second row (4 components) -
m5
Matrix second row (4 components) -
getM9
public float getM9()Matrix second row (4 components) -
setM9
public void setM9(float value) Matrix second row (4 components) -
m9
public float m9()Matrix second row (4 components) -
m9
Matrix second row (4 components) -
getM13
public float getM13()Matrix second row (4 components) -
setM13
public void setM13(float value) Matrix second row (4 components) -
m13
public float m13()Matrix second row (4 components) -
m13
Matrix second row (4 components) -
getM2
public float getM2()Matrix third row (4 components) -
setM2
public void setM2(float value) Matrix third row (4 components) -
m2
public float m2()Matrix third row (4 components) -
m2
Matrix third row (4 components) -
getM6
public float getM6()Matrix third row (4 components) -
setM6
public void setM6(float value) Matrix third row (4 components) -
m6
public float m6()Matrix third row (4 components) -
m6
Matrix third row (4 components) -
getM10
public float getM10()Matrix third row (4 components) -
setM10
public void setM10(float value) Matrix third row (4 components) -
m10
public float m10()Matrix third row (4 components) -
m10
Matrix third row (4 components) -
getM14
public float getM14()Matrix third row (4 components) -
setM14
public void setM14(float value) Matrix third row (4 components) -
m14
public float m14()Matrix third row (4 components) -
m14
Matrix third row (4 components) -
getM3
public float getM3()Matrix fourth row (4 components) -
setM3
public void setM3(float value) Matrix fourth row (4 components) -
m3
public float m3()Matrix fourth row (4 components) -
m3
Matrix fourth row (4 components) -
getM7
public float getM7()Matrix fourth row (4 components) -
setM7
public void setM7(float value) Matrix fourth row (4 components) -
m7
public float m7()Matrix fourth row (4 components) -
m7
Matrix fourth row (4 components) -
getM11
public float getM11()Matrix fourth row (4 components) -
setM11
public void setM11(float value) Matrix fourth row (4 components) -
m11
public float m11()Matrix fourth row (4 components) -
m11
Matrix fourth row (4 components) -
getM15
public float getM15()Matrix fourth row (4 components) -
setM15
public void setM15(float value) Matrix fourth row (4 components) -
m15
public float m15()Matrix fourth row (4 components) -
m15
Matrix fourth row (4 components)
-