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.

Constructor Index

 o Ray3()
Create a ray with an origin at (0, 0, 0), pointing in -Z
 o Ray3(Point3, Vector3)
Create a ray with a specified origin and direction.
 o Ray3(Ray3)
Create a new ray which is a copy of r.
 o Ray3(Vector3)
Create a ray with an origin at (0, 0, 0), pointing in a specified direction.

Method Index

 o clear()
 o clone()
 o copy(Copyable)
 o equals(Object)
 o getDirection()
 o getOrigin()
 o setValue(Point3, Point3)
 o setValue(Point3, Vector3)
 o toString()
 o transform(Matrix4)
Transform a ray with a 4x4 matrix; this result is only correct if m is an affine transformation.
 o transform(Matrix4, Ray3)
Transform a ray with a 4x4 matrix; this result is only correct if m is an affine transformation.

Constructors

 o Ray3
  public Ray3()
Create a ray with an origin at (0, 0, 0), pointing in -Z
 o Ray3
  public Ray3(Vector3 direction)
Create a ray with an origin at (0, 0, 0), pointing in a specified direction.
 o Ray3
  public Ray3(Ray3 r)
Create a new ray which is a copy of r.
 o Ray3
  public Ray3(Point3 origin,
              Vector3 direction)
Create a ray with a specified origin and direction.

Methods

 o clear
  public void clear()
 o setValue
  public void setValue(Point3 origin,
                       Vector3 direction)
 o setValue
  public void setValue(Point3 from,
                       Point3 to)
 o transform
  public void transform(Matrix4 m)
Transform a ray with a 4x4 matrix; this result is only correct if m is an affine transformation.
 o 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.
 o getOrigin
  public Point3 getOrigin()
 o getDirection
  public Vector3 getDirection()
 o equals
  public boolean equals(Object o)
Overrides:
equals in class Object
 o copy
  public void copy(Copyable c)
 o clone
  public Object clone()
Overrides:
clone in class Object
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index