org.metasyntactic.graphics.shapes
Class Plane

java.lang.Object
  |
  +--org.metasyntactic.graphics.shapes.Shape
        |
        +--org.metasyntactic.graphics.shapes.CartesianShape
              |
              +--org.metasyntactic.graphics.shapes.Plane

public class Plane
extends CartesianShape


Constructor Summary
Plane(double a, double b, double c, double d)
           
Plane(double a, double b, double c, double d, Vector normal)
          Creates a new instance of Plane
 
Method Summary
 double getA()
          Getter for property a.
 double getB()
          Getter for property b.
 double getC()
          Getter for property c.
 double getD()
          Getter for property d.
 Intersection getIntersection(Ray ray)
          returns null if there is no intersection
 Vector getNormal()
           
 
Methods inherited from class org.metasyntactic.graphics.shapes.CartesianShape
getIntersections, getPosition, setPosition
 
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

Plane

public Plane(double a,
             double b,
             double c,
             double d,
             Vector normal)
Creates a new instance of Plane


Plane

public Plane(double a,
             double b,
             double c,
             double d)
Method Detail

getIntersection

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

Overrides:
getIntersection in class CartesianShape

getA

public double getA()
Getter for property a.

Returns:
Value of property a.

getB

public double getB()
Getter for property b.

Returns:
Value of property b.

getC

public double getC()
Getter for property c.

Returns:
Value of property c.

getD

public double getD()
Getter for property d.

Returns:
Value of property d.

getNormal

public Vector getNormal()