Package toxi.geom
Class Axis3D
java.lang.Object
toxi.geom.Axis3D
An immutable origin + axis in 3D-Space.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAxis3D()
Creates a new z-Axis3D object from the world origin.Axis3D
(float x, float y, float z) Axis3D
(ReadonlyVec3D dir) Creates a new Axis3D from the world origin in the given direction.Axis3D
(ReadonlyVec3D o, ReadonlyVec3D dir) Creates a new Axis3D from the given origin and direction. -
Method Summary
-
Field Details
-
origin
-
dir
-
-
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
-
Axis3D
Creates a new Axis3D from the world origin in the given direction.- Parameters:
dir
- direction vector
-
Axis3D
Creates a new Axis3D from the given origin and direction.- Parameters:
o
- origindir
- direction
-
-
Method Details
-
xAxis
Creates a new x-Axis3D object from the world origin. -
yAxis
Creates a new y-Axis3D object from the world origin. -
zAxis
Creates a new z-Axis3D object from the world origin.
-