commit
bdd04739ff
|
@ -591,11 +591,20 @@ block:
|
|||
0.0, 0.0, 0.0, 1.0
|
||||
)
|
||||
|
||||
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(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.
|
||||
|
|
Loading…
Reference in a new issue