gumbo.graphic.math
Class Ray3

java.lang.Object
  |
  +--gumbo.graphic.math.Line3
        |
        +--gumbo.graphic.math.Ray3
All Implemented Interfaces:
Graphic, GraphicGeometry, java.io.Serializable, TransformableGraphic
Direct Known Subclasses:
Segment3

public class Ray3
extends Line3

A 3D spatial element representing a line of semi-infinite extent, which is defined by a position point and a direction vector.

Version:
$Revision: 1.9 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Constructor Summary
Ray3()
          Creates an instance, with the position at the origin, and a default unit vector direction.
Ray3(Ray3 target)
          Creates an instance with the same geometry as the target.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Ray3 getRay3()
          Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object.
 
Methods inherited from class gumbo.graphic.math.Line3
getDirection, getGraphic, getGraphicLocalSpace, getLine3, getPosition, set, setDirection, setPosition, toString, transformGraphic, transformGraphic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ray3

public Ray3()
Creates an instance, with the position at the origin, and a default unit vector direction.


Ray3

public Ray3(Ray3 target)
Creates an instance with the same geometry as the target.

Method Detail

getRay3

public Ray3 getRay3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object.

Returns:
The view. Never null.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Line3