From 8da5b88f09b12dd5fbecdcc65d6e02888ace31f9 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 1 Aug 2022 15:58:23 -0400 Subject: math: matrix: Fix shear implementation in matrix4-2d-transform! First of all, it's "shear", not "skew". Second, the math was wrong. Good job! --- doc/api.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/api.texi') diff --git a/doc/api.texi b/doc/api.texi index 6d14cd6..469c5d7 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1203,12 +1203,12 @@ Modify @var{matrix} in-place to contain a rotation about the Z axis by @deffn {Procedure} matrix4-2d-transform! matrix [#:origin] @ [#:position] [#:rotation] @ - [#:scale] [#:skew] + [#:scale] [#:shear] Modify @var{matrix} in-place to contain the transformation described by @var{position}, a 2D vector or rectangle, @var{rotation}, a scalar representing a rotation about the Z axis, @var{scale}, a 2D vector, -and @var{skew}, a 2D vector. The transformation happens with respect +and @var{shear}, a 2D vector. The transformation happens with respect to @var{origin}, a 2D vector. If an argument is not provided, that particular transformation will not be included in the result. @end deffn -- cgit v1.2.3