Matrix3d.rotationTowards

Set this matrix to a model transformation for a right-handed coordinate system, that aligns the local <code>-z</code> axis with <code>center - eye</code>. <p> In order to apply the rotation transformation to a previous existing transformation, use {@link #rotateTowards(double, double, double, double, double, double) rotateTowards}. <p> This method is equivalent to calling: <code>setLookAlong(new Vector3d(dir).negate(), up).invert()</code>

@see #rotationTowards(Vector3d, Vector3d) @see #rotateTowards(double, double, double, double, double, double)

@param dir the direction to orient the local -z axis towards @param up the up vector @return this

  1. Matrix3d rotationTowards(Vector3d dir, Vector3d up)
    struct Matrix3d
    ref return
    rotationTowards
  2. Matrix3d rotationTowards(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)

Meta