|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--raytracer.internal.Point
A representation of a point in three dimensions
Constructor Summary | |
Point(float x,
float y,
float z)
Creates a point at the location (x,y,z) |
|
Point(Point p)
Copy constructor |
Method Summary | |
Point |
add(Vector v)
Adds a vector to a point |
Vector |
sub(Point p)
Subtracts a point from a point |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Point(float x, float y, float z)
public Point(Point p)
p
- Point to duplicateMethod Detail |
public Point add(Vector v)
v
- Vector to add
public Vector sub(Point p)
p
- Point to subtract from this
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |