Fix error message (#35)

This commit is contained in:
Elliot Waite 2021-05-28 23:08:39 -07:00 committed by GitHub
parent 8debf1f6a1
commit 31d1e05d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ when defined(vmathArrayBased):
template y*[T](a: GVec3[T]): T = a[1] template y*[T](a: GVec3[T]): T = a[1]
template y*[T](a: GVec4[T]): T = a[1] template y*[T](a: GVec4[T]): T = a[1]
template z*[T](a: GVec2[T]): T = {.error: "using .w on a Vec2".} template z*[T](a: GVec2[T]): T = {.error: "using .z on a Vec2".}
template z*[T](a: GVec3[T]): T = a[2] template z*[T](a: GVec3[T]): T = a[2]
template z*[T](a: GVec4[T]): T = a[2] template z*[T](a: GVec4[T]): T = a[2]