Class Transform

java.lang.Object
eu.svjatoslav.sixth.e3d.math.Transform
All Implemented Interfaces:
Cloneable

public class Transform extends Object implements Cloneable
Used to represent transformation in a 3D space. Transformations are represented as a translation and an Orientation.
  • Constructor Details

    • Transform

      public Transform()
    • Transform

      public Transform(Point3D translation)
      Creates a new transform with the specified translation.
      Parameters:
      translation - the translation
    • Transform

      public Transform(Point3D translation, double angleXZ, double angleYZ)
      Creates a new transform with the specified translation and orientation.
      Parameters:
      translation - the translation
      angleXZ - the angle around the XZ axis
      angleYZ - the angle around the YZ axis
    • Transform

      public Transform(Point3D translation, Orientation orientation)
      Creates a new transform with the specified translation and orientation.
      Parameters:
      translation - the translation
      orientation - the orientation
  • Method Details

    • clone

      public Transform clone()
      Overrides:
      clone in class Object
    • getOrientation

      public Orientation getOrientation()
    • getTranslation

      public Point3D getTranslation()
    • transform

      public void transform(Point3D point)
      Applies this transform to the specified point in a 3D space.
      Parameters:
      point - to apply this transform to