Merge pull request #11 from guzba/master

Safe to remove? I don't seem to need it since its just an alias & value type
This commit is contained in:
treeform 2020-03-27 09:01:01 -07:00 committed by GitHub
commit d74637be9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1070,14 +1070,6 @@ func lookAt*(eye, center, up: Vec3): Mat4 =
result[14] = -(z0*eyex + z1*eyey + z2*eyez)
result[15] = 1
func toFloat32*(m: Mat4): array[16, float32] =
[
float32 m[00], float32 m[01], float32 m[02], float32 m[03],
float32 m[04], float32 m[05], float32 m[06], float32 m[07],
float32 m[08], float32 m[09], float32 m[10], float32 m[11],
float32 m[12], float32 m[13], float32 m[14], float32 m[15]
]
func `$`*(a: Mat4): string =
&"""[{a[0]:.5f}, {a[1]:.5f}, {a[2]:.5f}, {a[3]:.5f},
{a[4]:.5f}, {a[5]:.5f}, {a[6]:.5f}, {a[7]:.5f},