Package toxi.geom

Class Axis3D

java.lang.Object
toxi.geom.Axis3D

public class Axis3D extends Object
An immutable origin + axis in 3D-Space.
  • Field Details

  • Constructor Details

    • Axis3D

      public Axis3D()
      Creates a new z-Axis3D object from the world origin.
    • Axis3D

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

      public Axis3D(Ray3D ray)
    • Axis3D

      public Axis3D(ReadonlyVec3D dir)
      Creates a new Axis3D from the world origin in the given direction.
      Parameters:
      dir - direction vector
    • Axis3D

      public Axis3D(ReadonlyVec3D o, ReadonlyVec3D dir)
      Creates a new Axis3D from the given origin and direction.
      Parameters:
      o - origin
      dir - direction
  • Method Details

    • xAxis

      public static final Axis3D xAxis()
      Creates a new x-Axis3D object from the world origin.
    • yAxis

      public static final Axis3D yAxis()
      Creates a new y-Axis3D object from the world origin.
    • zAxis

      public static final Axis3D zAxis()
      Creates a new z-Axis3D object from the world origin.