Matrix4d.setLookAt
- Matrix4d setLookAt(Vector3d eye, Vector3d center, Vector3d up)
struct Matrix4d
ref public return
setLookAt
- Matrix4d setLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
doml matrix_4d Matrix4d
constructorsfunctionsstatic variablesvariables
Set this matrix to be a "lookat" transformation for a right-handed coordinate system, that aligns <code>-z</code> with <code>center - eye</code>. <p> In order to not make use of vectors to specify <code>eye</code>, <code>center</code> and <code>up</code> but use primitives, like in the GLU function, use {@link #setLookAt(double, double, double, double, double, double, double, double, double) setLookAt()} instead. <p> In order to apply the lookat transformation to a previous existing transformation, use {@link #lookAt(ref Vector3d, Vector3d, Vector3d) lookAt()}.
@see #setLookAt(double, double, double, double, double, double, double, double, double) @see #lookAt(ref Vector3d, Vector3d, Vector3d)
@param eye the position of the camera @param center the point in space to look at @param up the direction of 'up' @return this