Matrix3d.lookAlong
- Matrix3d lookAlong(Vector3d dir, Vector3d up)
- Matrix3d lookAlong(Vector3d dir, Vector3d up, Matrix3d dest)
- Matrix3d lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix3d dest)
- Matrix3d lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
matrix_3d Matrix3d
constructorsfunctionsvariables
Apply a rotation transformation to this matrix to make <code>-z</code> point along <code>dir</code> and store the result in <code>dest</code>. <p> If <code>M</code> is <code>this</code> matrix and <code>L</code> the lookalong rotation matrix, then the new matrix will be <code>M * L</code>. So when transforming a vector <code>v</code> with the new matrix by using <code>M * L * v</code>, the lookalong rotation transformation will be applied first! <p> In order to set the matrix to a lookalong transformation without post-multiplying it, use {@link #setLookAlong(Vector3d, Vector3d) setLookAlong()}.
@see #lookAlong(double, double, double, double, double, double) @see #setLookAlong(Vector3d, Vector3d)
@param dir the direction in space to look along @param up the direction of 'up' @param dest will hold the result @return dest