org.metasyntactic.graphics.shapes
Class CartesianShape

java.lang.Object
  |
  +--org.metasyntactic.graphics.shapes.Shape
        |
        +--org.metasyntactic.graphics.shapes.CartesianShape
Direct Known Subclasses:
Plane, ReflectiveShape

public abstract class CartesianShape
extends Shape


Constructor Summary
CartesianShape()
          Creates a new instance of CartesianShape
 
Method Summary
 Intersection getIntersection(Ray ray)
          returns null if there is no intersection
 java.util.List getIntersections(Ray ray)
           
 Point getPosition()
          Getter for property position.
 void setPosition(Point position)
          Setter for property position.
 
Methods inherited from class org.metasyntactic.graphics.shapes.Shape
getColor, setColor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CartesianShape

public CartesianShape()
Creates a new instance of CartesianShape

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.

getIntersection

public Intersection getIntersection(Ray ray)
returns null if there is no intersection


getIntersections

public java.util.List getIntersections(Ray ray)