commit
bdd04739ff
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue