edu.stanford.rsl.konrad.geometry.splines.capi
Class CAPIPoint3D
java.lang.Object
edu.stanford.rsl.konrad.geometry.splines.capi.CAPIPoint3D
- All Implemented Interfaces:
- com.graphbuilder.curve.CurvePoint, com.graphbuilder.geom.Point2d, com.graphbuilder.geom.Point3d
public class CAPIPoint3D
- extends java.lang.Object
- implements com.graphbuilder.geom.Point3d, com.graphbuilder.curve.CurvePoint
Class that modes a 3D Point in space. Compatible with java.awt.Point and com.graphbuilder
- Author:
- akmaier
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CAPIPoint3D
public CAPIPoint3D(double x,
double y,
double z)
CAPIPoint3D
public CAPIPoint3D(PointND p)
getX
public double getX()
- Specified by:
getX
in interface com.graphbuilder.geom.Point2d
getY
public double getY()
- Specified by:
getY
in interface com.graphbuilder.geom.Point2d
getZ
public double getZ()
- Specified by:
getZ
in interface com.graphbuilder.geom.Point3d
setLocation
public void setLocation(double x,
double y)
- Specified by:
setLocation
in interface com.graphbuilder.geom.Point2d
distance
public double distance(CAPIPoint3D two)
- computes the Euclidean distance between the current point
the the point "two"
as

- Parameters:
two
- the other point
- Returns:
- the distance
setLocation
public void setLocation(double[] p)
- Specified by:
setLocation
in interface com.graphbuilder.curve.CurvePoint
getLocationAsDoubleArray
public double[] getLocationAsDoubleArray()
- Specified by:
getLocationAsDoubleArray
in interface com.graphbuilder.curve.CurvePoint
setLocation
public void setLocation(double x,
double y,
double z)
- Specified by:
setLocation
in interface com.graphbuilder.geom.Point3d
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object