Merge pull request #50 from mvikto/master

fix GMat4.pos
This commit is contained in:
treeform 2022-03-18 14:37:55 -07:00 committed by GitHub
commit bdd04739ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -591,12 +591,21 @@ block:
0.0, 0.0, 0.0, 1.0
)
block:
doAssert translate(vec2(1, 2)).pos == vec2(1, 2)
var translation = translate(vec2(1, 2))
translation.pos = vec2(3, 4)
doAssert translation.pos == vec2(3, 4)
block:
doAssert translate(vec3(1, 2, 3)).pos == vec3(1, 2, 3)
var translation = translate(vec3(1, 2, 3))
translation.pos = vec3(3, 4, 5)
doAssert translation.pos == vec3(3, 4, 5)
block:
# Test basic vector mat4 and quat.
var m1 = mat4(