Java Code Examples for org.joml.Matrix4f#m02()

The following examples show how to use org.joml.Matrix4f#m02() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnimMeshesLoader.java    From lwjglbook with Apache License 2.0 6 votes vote down vote up
private static Matrix4f toMatrix(AIMatrix4x4 aiMatrix4x4) {
    Matrix4f result = new Matrix4f();
    result.m00(aiMatrix4x4.a1());
    result.m10(aiMatrix4x4.a2());
    result.m20(aiMatrix4x4.a3());
    result.m30(aiMatrix4x4.a4());
    result.m01(aiMatrix4x4.b1());
    result.m11(aiMatrix4x4.b2());
    result.m21(aiMatrix4x4.b3());
    result.m31(aiMatrix4x4.b4());
    result.m02(aiMatrix4x4.c1());
    result.m12(aiMatrix4x4.c2());
    result.m22(aiMatrix4x4.c3());
    result.m32(aiMatrix4x4.c4());
    result.m03(aiMatrix4x4.d1());
    result.m13(aiMatrix4x4.d2());
    result.m23(aiMatrix4x4.d3());
    result.m33(aiMatrix4x4.d4());

    return result;
}
 
Example 2
Source File: AnimMeshesLoader.java    From lwjglbook with Apache License 2.0 6 votes vote down vote up
private static Matrix4f toMatrix(AIMatrix4x4 aiMatrix4x4) {
    Matrix4f result = new Matrix4f();
    result.m00(aiMatrix4x4.a1());
    result.m10(aiMatrix4x4.a2());
    result.m20(aiMatrix4x4.a3());
    result.m30(aiMatrix4x4.a4());
    result.m01(aiMatrix4x4.b1());
    result.m11(aiMatrix4x4.b2());
    result.m21(aiMatrix4x4.b3());
    result.m31(aiMatrix4x4.b4());
    result.m02(aiMatrix4x4.c1());
    result.m12(aiMatrix4x4.c2());
    result.m22(aiMatrix4x4.c3());
    result.m32(aiMatrix4x4.c4());
    result.m03(aiMatrix4x4.d1());
    result.m13(aiMatrix4x4.d2());
    result.m23(aiMatrix4x4.d3());
    result.m33(aiMatrix4x4.d4());

    return result;
}