Skip to content

Commit

Permalink
Update the doc for fromRotation
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 20, 2024
1 parent 41756c6 commit cfa8216
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mat2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/mat2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/mat3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/mat4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfa8216

Please sign in to comment.