at.tuwien.ifs.somtoolbox.util
Class Point3d

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.util.Point3d

public class Point3d
extends Object

A representation of a 3-dimensional point, similar to Point, but using double (or float (Float) precision.

Version:
$Id: Point3d.java 3583 2010-05-21 10:07:41Z mayer $
Author:
Rudolf Mayer

Field Summary
 double x
           
 double y
           
 double z
           
 
Constructor Summary
Point3d()
           
Point3d(double x, double y, double z)
           
 
Method Summary
 Object clone()
           
 double distance(Point3d other)
          Returns the Euclidean distance between this point and the other.
 double getX()
           
 double getY()
           
 double getZ()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

z

public double z
Constructor Detail

Point3d

public Point3d()

Point3d

public Point3d(double x,
               double y,
               double z)
Method Detail

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

distance

public double distance(Point3d other)
Returns the Euclidean distance between this point and the other.


clone

public Object clone()
Overrides:
clone in class Object