Skip to content

Commit

Permalink
Fix using new locals in Matrix4f.setLookAlong
Browse files Browse the repository at this point in the history
Also renamed QuaternionD.LookAt to .lookAt
  • Loading branch information
httpdigest committed Jun 17, 2015
1 parent 4aa4d23 commit aee5a95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/org/joml/Matrix4f.java
Original file line number Diff line number Diff line change
Expand Up @@ -2154,16 +2154,16 @@ public Matrix4f setLookAlong(float dirX, float dirY, float dirZ,
upnZ = rightX * dirnY - rightY * dirnX;

m00 = rightX;
m01 = upX;
m02 = -dirX;
m01 = upnX;
m02 = -dirnX;
m03 = 0.0f;
m10 = rightY;
m11 = upY;
m12 = -dirY;
m11 = upnY;
m12 = -dirnY;
m13 = 0.0f;
m20 = rightZ;
m21 = upZ;
m22 = -dirZ;
m21 = upnZ;
m22 = -dirnZ;
m23 = 0.0f;
m30 = 0.0f;
m31 = 0.0f;
Expand Down
4 changes: 2 additions & 2 deletions src/org/joml/QuaternionD.java
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ public QuaternionD nlerp(QuaternionD q, float factor, QuaternionD dest) {


/** Rotates dest to point towards destPoint, from the supplied sourcePoint */
public static void LookAt(Vector3d sourcePoint, Vector3d destPoint, Vector3d up, Vector3d forward, QuaternionD dest) {
public static void lookAt(Vector3d sourcePoint, Vector3d destPoint, Vector3d up, Vector3d forward, QuaternionD dest) {
double dirX = destPoint.x - sourcePoint.x;
double dirY = destPoint.y - sourcePoint.y;
double dirZ = destPoint.z - sourcePoint.z;
Expand Down Expand Up @@ -1043,7 +1043,7 @@ public static void LookAt(Vector3d sourcePoint, Vector3d destPoint, Vector3d up,
*
* @return this
*/
public QuaternionD LookAt(Vector3d sourcePoint, Vector3d destPoint, Vector3d up, Vector3d forward) {
public QuaternionD lookAt(Vector3d sourcePoint, Vector3d destPoint, Vector3d up, Vector3d forward) {
double dirX = destPoint.x - sourcePoint.x;
double dirY = destPoint.y - sourcePoint.y;
double dirZ = destPoint.z - sourcePoint.z;
Expand Down

0 comments on commit aee5a95

Please sign in to comment.