Interface Transformation


public interface Transformation
Author:
Pierre Lando
  • Method Details

    • rightTimes

      Transformation rightTimes(Transformation transformation)
      Return this right times the given transformation.
      Parameters:
      transformation - the given transformation.
      Returns:
      a new transformation.
    • leftTimes

      Transformation leftTimes(Transformation transformation)
      Return this left times the given transformation.
      Parameters:
      transformation - the given transformation.
      Returns:
      a new transformation.
    • getInverseTransformation

      Transformation getInverseTransformation()
      Return the inverse transformation.
      Returns:
      the inverse transformation.
    • project

      Vector3d project(Vector3d vector)
      Project the given vector. W value is set to 1.
      Parameters:
      vector - the given vector.
      Returns:
      the given vector projected.
    • projectDirection

      Vector3d projectDirection(Vector3d direction)
      Project the given direction. Translation part is not used.
      Parameters:
      direction - the direction to project.
      Returns:
      the given direction projected.
    • unproject

      Vector3d unproject(Vector3d vector)
      Unproject the given vector. W value is set to 1.
      Parameters:
      vector - the given vector.
      Returns:
      the given vector un-projected.
    • isIdentity

      boolean isIdentity()
      Return true if is identity, false otherwise.
      Returns:
      true if is identity, false otherwise.
    • getMatrix

      double[] getMatrix()
      Return this transformation matrix. The returned array is a clone of the transformation array.
      Returns:
      this transformation matrix.
    • getInverseMatrix

      double[] getInverseMatrix()
      Return this transformation inverse matrix. The returned array is a clone of the transformation array.
      Returns:
      this transformation inverse matrix.