Matrix4x3d.translationRotateTowards

Set this matrix to a model transformation for a right-handed coordinate system, that translates to the given <code>(posX, posY, posZ)</code> and aligns the local <code>-z</code> axis with <code>(dirX, dirY, dirZ)</code>. <p> This method is equivalent to calling: <code>translation(posX, posY, posZ).rotateTowards(dirX, dirY, dirZ, upX, upY, upZ)</code>

@see #translation(double, double, double) @see #rotateTowards(double, double, double, double, double, double)

@param posX the x-coordinate of the position to translate to @param posY the y-coordinate of the position to translate to @param posZ the z-coordinate of the position to translate to @param dirX the x-coordinate of the direction to rotate towards @param dirY the y-coordinate of the direction to rotate towards @param dirZ the z-coordinate of the direction to rotate towards @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. Matrix4x3d translationRotateTowards(Vector3d pos, Vector3d dir, Vector3d up)
  2. Matrix4x3d translationRotateTowards(double posX, double posY, double posZ, double dirX, double dirY, double dirZ, double upX, double upY, double upZ)
    struct Matrix4x3d
    ref public return
    translationRotateTowards
    (
    double posX
    ,
    double posY
    ,
    double posZ
    ,
    double dirX
    ,
    double dirY
    ,
    double dirZ
    ,
    double upX
    ,
    double upY
    ,
    double upZ
    )

Meta