Package toxi.geom

Class Origin3D

java.lang.Object
toxi.geom.Origin3D

public class Origin3D extends Object
This class defines an origin and set of axis vectors for a 3D cartesian coordinate system.
  • Field Details

  • Constructor Details

    • Origin3D

      public Origin3D()
      Creates a new origin at the world origin using the standard XYZ axes
    • Origin3D

      public Origin3D(float x, float y, float z)
    • Origin3D

      public Origin3D(Matrix4x4 mat)
    • Origin3D

      public Origin3D(Vec3D o)
      Creates a new origin at the given origin using the standard XYZ axes
      Parameters:
      o - origin
    • Origin3D

      public Origin3D(Vec3D o, Vec3D dir)
      Attempts to create a cartesian coordinate system with the given point as its origin and the direction as its Z-axis. In cases when two of the direction vector components are equal, the constructor will throw an IllegalArgumentException.
      Parameters:
      o - origin of the coordinate system
      dir - z-axis
    • Origin3D

      public Origin3D(Vec3D o, Vec3D x, Vec3D y) throws IllegalArgumentException
      Parameters:
      o - origin of the coordinate system
      x - x-direction of the coordinate system
      y - y-direction of the coordinate system
      Throws:
      IllegalArgumentException - if x and y vectors are not orthogonal