org.metasyntactic.graphics.primitives
Class Ray

java.lang.Object
  |
  +--org.metasyntactic.graphics.primitives.Ray

public final class Ray
extends java.lang.Object


Constructor Summary
Ray()
          Creates a new instance of Ray
Ray(Point position, Vector direction)
           
 
Method Summary
static Ray fromXML(org.w3c.dom.Element element)
           
 Vector getDirection()
          Getter for property direction.
 Point getPosition()
          Getter for property position.
 Point getTail()
           
 Point getTail(double scale)
           
 void setDirection(Vector direction)
          Setter for property direction.
 void setPosition(Point position)
          Setter for property position.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ray

public Ray()
Creates a new instance of Ray


Ray

public Ray(Point position,
           Vector direction)
Method Detail

getPosition

public Point getPosition()
Getter for property position.

Returns:
Value of property position.

setPosition

public void setPosition(Point position)
Setter for property position.

Parameters:
position - New value of property position.

getDirection

public Vector getDirection()
Getter for property direction.

Returns:
Value of property direction.

setDirection

public void setDirection(Vector direction)
Setter for property direction.

Parameters:
direction - New value of property direction.

getTail

public Point getTail()

getTail

public Point getTail(double scale)

fromXML

public static Ray fromXML(org.w3c.dom.Element element)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object