org.metasyntactic.graphics.primitives
Class Point

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

public final class Point
extends java.lang.Object


Constructor Summary
Point(double x, double y, double z)
          Creates a new instance of Point
 
Method Summary
 Point add(Vector v)
           
static double distance(Point p1, Point p2)
           
static Point fromXML(org.w3c.dom.Element element)
          Setter for property z.
 double getX()
          Getter for property x.
 double getY()
          Getter for property y.
 double getZ()
          Getter for property z.
 Point subtract(Point p)
           
 java.lang.String toString()
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(double x,
             double y,
             double z)
Creates a new instance of Point

Method Detail

distance

public static double distance(Point p1,
                              Point p2)

getX

public final double getX()
Getter for property x.

Returns:
Value of property x.

getY

public final double getY()
Getter for property y.

Returns:
Value of property y.

getZ

public final double getZ()
Getter for property z.

Returns:
Value of property z.

fromXML

public static Point fromXML(org.w3c.dom.Element element)
Setter for property z.


add

public Point add(Vector v)

subtract

public Point subtract(Point p)

toString

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

toXML

public java.lang.String toXML()