1.0.2: Fix default generic params.

This commit is contained in:
treeform 2021-03-26 15:33:36 -07:00
parent a4662ebf0a
commit 9cdf152ec7
2 changed files with 5 additions and 2 deletions

View file

@ -807,7 +807,7 @@ proc ortho*[T](left, right, bottom, top, near, far: T): GMat4[T] =
result[3, 2] = -(far + near) / fn
result[3, 3] = 1
proc lookAt*[T](eye, center: GVec3[T], up = [T(0), 0, 1]): GMat4[T] =
proc lookAt*[T](eye, center, up: GVec3[T]): GMat4[T] =
let
eyex = eye[0]
eyey = eye[1]
@ -887,6 +887,9 @@ proc lookAt*[T](eye, center: GVec3[T], up = [T(0), 0, 1]): GMat4[T] =
result[3, 2] = -(z0 * eyex + z1 * eyey + z2 * eyez)
result[3, 3] = 1
proc lookAt*[T](eye, center: GVec3[T]): GMat4[T] =
lookAt(eye, center, [T(0), 0, 1])
proc angle*[T](a: GVec2[T]): T =
## Angle of a Vec2.
arctan2(a.y, a.x)

View file

@ -1,4 +1,4 @@
version = "1.0.1"
version = "1.0.2"
author = "treeform"
description = "Your single stop for vector math routines for 2d and 3d graphics."
license = "MIT"