Matrix3d.lookAlong

Apply a rotation transformation to this matrix to make <code>-z</code> point along <code>dir</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(double, double, double, double, double, double) setLookAlong()}

@see #setLookAlong(double, double, double, double, double, double)

@param dirX the x-coordinate of the direction to look along @param dirY the y-coordinate of the direction to look along @param dirZ the z-coordinate of the direction to look along @param upX the x-coordinate of the up vector @param upY the y-coordinate of the up vector @param upZ the z-coordinate of the up vector @return this

  1. Matrix3d lookAlong(Vector3d dir, Vector3d up)
  2. Matrix3d lookAlong(Vector3d dir, Vector3d up, Matrix3d dest)
  3. Matrix3d lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ, Matrix3d dest)
  4. Matrix3d lookAlong(double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
    struct Matrix3d
    ref public return
    lookAlong
    (
    double dirX
    ,
    double dirY
    ,
    double dirZ
    ,
    double upX
    ,
    double upY
    ,
    double upZ
    )

Meta