Matrix4d.translationRotateTowards
- Matrix4d translationRotateTowards(Vector3d pos, Vector3d dir, Vector3d up)
struct Matrix4d
ref public return
translationRotateTowards
- Matrix4d translationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
doml matrix_4d Matrix4d
constructorsfunctionsstatic variablesvariables
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