Add (core)Mat4f -> DhApiMat4f constructor

This commit is contained in:
James Seibel
2022-09-05 21:38:05 -05:00
parent f323eaf666
commit 71f55ef0e3
2 changed files with 8 additions and 1 deletions
@@ -19,6 +19,8 @@
package com.seibel.lod.api.items.objects.math;
import com.seibel.lod.core.objects.math.Mat4f;
/**
* A simple way to store a 4x4 array
* of floats without having to worry
@@ -96,6 +98,11 @@ public class DhApiMat4f
m33 = values[15];
}
public DhApiMat4f(Mat4f sourceMatrix)
{
this(sourceMatrix.getValuesAsArray());
}
/** Returns the values of this matrix in row major order (AKA rows then columns) */