From cfa8216fe5d09120d2208835cbced01c811702eb Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Sun, 20 Oct 2024 10:51:05 +0900 Subject: [PATCH] Update the doc for fromRotation --- src/mat2.ts | 3 ++- src/mat2d.ts | 4 ++-- src/mat3.ts | 1 + src/mat4.ts | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mat2.ts b/src/mat2.ts index e930695..d0a30be 100644 --- a/src/mat2.ts +++ b/src/mat2.ts @@ -216,7 +216,8 @@ export namespace mat2 { } /** - * Creates a matrix from a given angle + * Creates a matrix from a given angle. + * @param deg The angle to rotate the matrix by, in degrees * @category Generators * * @shorthands diff --git a/src/mat2d.ts b/src/mat2d.ts index df15978..62e3b87 100644 --- a/src/mat2d.ts +++ b/src/mat2d.ts @@ -270,8 +270,8 @@ export namespace mat2d { } /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): + * Creates a matrix from a given angle. + * @param deg The angle to rotate the matrix by, in degrees * @category Generators * * @shorthands diff --git a/src/mat3.ts b/src/mat3.ts index 7c72491..0b057b4 100644 --- a/src/mat3.ts +++ b/src/mat3.ts @@ -332,6 +332,7 @@ export namespace mat3 { /** * Creates a matrix from a given angle + * @param deg The angle to rotate the matrix by, in degrees * @category Generators * * @shorthands diff --git a/src/mat4.ts b/src/mat4.ts index e769bf2..ebde187 100644 --- a/src/mat4.ts +++ b/src/mat4.ts @@ -599,6 +599,9 @@ export namespace mat4 { /** * Creates a matrix from a given angle around a given axis + * Creates a matrix from a given angle. + * @param deg The angle to rotate the matrix by, in degrees + * @param axis The axis to rotate around * @category Generators * * @shorthands