Package toxi.geom
Class Origin3D
java.lang.Object
toxi.geom.Origin3D
This class defines an origin and set of axis vectors for a 3D cartesian
coordinate system.
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionOrigin3D()
Creates a new origin at the world origin using the standard XYZ axesOrigin3D
(float x, float y, float z) Creates a new origin at the given origin using the standard XYZ axesAttempts to create a cartesian coordinate system with the given point as its origin and the direction as its Z-axis. -
Method Summary
-
Field Details
-
origin
-
xAxis
-
yAxis
-
zAxis
-
-
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
-
Origin3D
Creates a new origin at the given origin using the standard XYZ axes- Parameters:
o
- origin
-
Origin3D
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 anIllegalArgumentException
.- Parameters:
o
- origin of the coordinate systemdir
- z-axis
-
Origin3D
- Parameters:
o
- origin of the coordinate systemx
- x-direction of the coordinate systemy
- y-direction of the coordinate system- Throws:
IllegalArgumentException
- if x and y vectors are not orthogonal
-