Add (core)Mat4f -> DhApiMat4f constructor
This commit is contained in:
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user