Skip to content

Commit

Permalink
mathd: javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Dec 24, 2022
1 parent 83ffa23 commit 75a0cc1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/main/java/com/simsilica/mathd/Matrix3d.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@


/**
* A matrix composed of 9 double-precision elements, used to represent
* rotations in 3-dimensional space.
* A square matrix composed of 9 double-precision elements, used to represent
* linear transformations of 3-dimensional vectors.
* <p>
* Methods with names ending in "Local" modify the current instance. They are
* used to avoid creating temporary objects.
* <p>
* By convention, indices start from zero. The conventional order of indices is
* (row, column).
*
* @author Paul Speed
*/
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/simsilica/mathd/Quatd.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@
* space, without risk of gimbal lock. Each instance has 4 double-precision
* components: 3 imaginary components (X, Y, and Z) and a real component (W).
* <p>
* Methods with names ending in "Local" modify the current instance. They are
* used to avoid creating temporary objects.
* <p>
* Mathematically, quaternions are an extension of complex numbers. In
* mathematics texts, W often appears first, but here order is (X, Y, Z, W).
* mathematics texts, W often appears first, but here the conventional order
* is (X, Y, Z, W).
*
* @version $Revision: 3951 $
* @author Paul Speed
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/simsilica/mathd/Vec3d.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* Methods with names ending in "Local" modify the current instance. They are
* used to avoid creating temporary vectors.
* <p>
* The conventional ordering of components is (X, Y, Z).
* The conventional order of components is (X, Y, Z).
*
* @version $Revision: 3951 $
* @author Paul Speed
Expand Down

0 comments on commit 75a0cc1

Please sign in to comment.