diff options
-rw-r--r-- | chickadee/math/matrix.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chickadee/math/matrix.scm b/chickadee/math/matrix.scm index 26c1dc2..00f5849 100644 --- a/chickadee/math/matrix.scm +++ b/chickadee/math/matrix.scm @@ -278,7 +278,7 @@ column-major format." (define (orthographic-projection left right top bottom near far) "Return a new matrix4 that represents an orthographic projection for -the vertical clipping plane LEFT and RIGHT, the horizontal clipping +the horizontal clipping plane LEFT and RIGHT, the vertical clipping plane TOP and BOTTOM, and the depth clipping plane NEAR and FAR." (make-matrix4 (/ 2 (- right left)) 0.0 0.0 0.0 0.0 (/ 2 (- top bottom)) 0.0 0.0 @@ -290,7 +290,7 @@ plane TOP and BOTTOM, and the depth clipping plane NEAR and FAR." (define (perspective-projection field-of-vision aspect-ratio near far) "Return a new matrix4 that represents a perspective projection with -a FIELD-OF-VISION in degrees, the desired ASPECT-RATIO, and the depth +a FIELD-OF-VISION in radians, the desired ASPECT-RATIO, and the depth clipping plane NEAR and FAR." (let ((f (cotan (/ field-of-vision 2)))) (make-matrix4 (/ f aspect-ratio) 0 0 0 @@ -392,7 +392,7 @@ clipping plane NEAR and FAR." (skew null-vec2)) "Store in MATRIX the transformation described by POSITION, a 2D vector or rect, ROTATION, a scalar representing a rotation about the Z -access, SCALE, a 2D vector, and SKEW, a 2D vector. The transformation +axis, SCALE, a 2D vector, and SKEW, a 2D vector. The transformation happens with respect to ORIGIN, a 2D vector." (let* ((bv (matrix4-bv matrix)) (x (vec2-x position)) |