Class dnx.geom.Ray3
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.Ray3
java.lang.Object
|
+----dnx.geom.Ray3
- public class Ray3
- extends Object
- implements Cloneable, Copyable
3D ray represented by an origin and direction vector.
-
Ray3()
- Create a ray with an origin at (0, 0, 0), pointing in -Z
-
Ray3(Point3, Vector3)
- Create a ray with a specified origin and direction.
-
Ray3(Ray3)
- Create a new ray which is a copy of r.
-
Ray3(Vector3)
- Create a ray with an origin at (0, 0, 0), pointing in a
specified direction.
-
clear()
-
-
clone()
-
-
copy(Copyable)
-
-
equals(Object)
-
-
getDirection()
-
-
getOrigin()
-
-
setValue(Point3, Point3)
-
-
setValue(Point3, Vector3)
-
-
toString()
-
-
transform(Matrix4)
- Transform a ray with a 4x4 matrix; this result is only correct if
m is an affine transformation.
-
transform(Matrix4, Ray3)
- Transform a ray with a 4x4 matrix; this result is only correct if
m is an affine transformation.
Ray3
public Ray3()
- Create a ray with an origin at (0, 0, 0), pointing in -Z
Ray3
public Ray3(Vector3 direction)
- Create a ray with an origin at (0, 0, 0), pointing in a
specified direction.
Ray3
public Ray3(Ray3 r)
- Create a new ray which is a copy of r.
Ray3
public Ray3(Point3 origin,
Vector3 direction)
- Create a ray with a specified origin and direction.
clear
public void clear()
setValue
public void setValue(Point3 origin,
Vector3 direction)
setValue
public void setValue(Point3 from,
Point3 to)
transform
public void transform(Matrix4 m)
- Transform a ray with a 4x4 matrix; this result is only correct if
m is an affine transformation.
transform
public void transform(Matrix4 m,
Ray3 r)
- Transform a ray with a 4x4 matrix; this result is only correct if
m is an affine transformation.
getOrigin
public Point3 getOrigin()
getDirection
public Vector3 getDirection()
equals
public boolean equals(Object o)
- Overrides:
- equals in class Object
copy
public void copy(Copyable c)
clone
public Object clone()
- Overrides:
- clone in class Object
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index