Matrix4d.translationRotateTowards

Set this matrix to a model transformation for a right-handed coordinate system, that translates to the given <code>pos</code> and aligns the local <code>-z</code> axis with <code>dir</code>. <p> This method is equivalent to calling: <code>translation(pos).rotateTowards(dir, up)</code>

@see #translation(ref Vector3d) @see #rotateTowards(ref Vector3d, Vector3d)

@param pos the position to translate to @param dir the direction to rotate towards @param up the up vector @return this

  1. Matrix4d translationRotateTowards(Vector3d pos, Vector3d dir, Vector3d up)
    struct Matrix4d
    ref public return
    translationRotateTowards
  2. Matrix4d translationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ)

Meta