Class Point

java.lang.Object
  extended by Point

public class Point
extends java.lang.Object


Field Summary
static Point ORIGIN
           
 
Method Summary
 Point add(Vector v)
           
 Point addScaled(double scalar, Vector v)
           
static Point create(double x, double y, double z)
           
static Point create(double x, double y, double z, double h)
           
 double getDistanceTo(Point other)
           
 double getHomogeneous()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 Vector subtract(Point other)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ORIGIN

public static Point ORIGIN
Method Detail

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

getHomogeneous

public double getHomogeneous()

toString

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

getDistanceTo

public double getDistanceTo(Point other)

subtract

public Vector subtract(Point other)

addScaled

public Point addScaled(double scalar,
                       Vector v)

add

public Point add(Vector v)

create

public static Point create(double x,
                           double y,
                           double z)

create

public static Point create(double x,
                           double y,
                           double z,
                           double h)