-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
The Mat4d class is almost a verbatim copy of JOML's Matrix4f, including the JavaDocs, whose references do not match anymore, because glm just renamed the class and method names.
Examples:
JOML 1.7.1: https://github.com/JOML-CI/JOML/blob/5b9b0c0aa7e374dba08cfca4fe47bdd9c8cc6d03/src/org/joml/Matrix4f.java#L7283-L7300
glm:
glm/glm/src/glm/mat/_4/d/Mat4d.java
Lines 361 to 381 in 1431993
/** | |
* Compute a normal matrix from the upper left 3x3 submatrix of | |
* <code>this</code> and store it into the upper left 3x3 submatrix of | |
* <code>dest</code>. All other values of <code>dest</code> will be set to | |
* {@link #identity() identity}. | |
* <p> | |
* The normal matrix of <tt>m</tt> is the transpose of the inverse of | |
* <tt>m</tt>. | |
* <p> | |
* Please note that, if <code>this</code> is an orthogonal matrix or a | |
* matrix whose columns are orthogonal vectors, then this method <i>need | |
* not</i> be invoked, since in that case <code>this</code> itself is its | |
* normal matrix. In that case, use {@link #set3x3(Matrix4f)} to set a given | |
* Matrix4f to only the upper left 3x3 submatrix of this matrix. | |
* | |
* @see #set3x3(Matrix4f) | |
* | |
* @param dest will hold the result | |
* @return dest | |
*/ | |
public Mat4d invTransp3(Mat4d dest) { |
If you want to copy code and even JavaDoc verbatim, then you should at least give credit or ask for permission.
Metadata
Metadata
Assignees
Labels
No labels