summaryrefslogtreecommitdiff
path: root/chickadee/math
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-09-27 08:40:24 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-09-27 08:40:24 -0400
commit43ef90c15ee8ad3f286a7dc12838909775b7501a (patch)
treebcfbaca611a384ddc78ddc73c3f74739a27295f9 /chickadee/math
parentb69cdffb9e86e62325b8bc5560162b044b8b30b6 (diff)
math: matrix: Fix a few docstrings.
* chickadee/math/matrix.scm: Fix mistakes in docstrings.
Diffstat (limited to 'chickadee/math')
-rw-r--r--chickadee/math/matrix.scm6
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))