com.croftsoft.core.math.geom
Class Point2DD
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
com.croftsoft.core.math.geom.Point2DD
- All Implemented Interfaces:
- Testable, PointXY, Serializable, Cloneable
- Direct Known Subclasses:
- Point3DD
public class Point2DD
- extends Point2D.Double
- implements PointXY, Serializable, Testable
A Point2D.Double extension implementing accessor interface PointXY.
- Since:
- 2003-03-20
- Version:
- 2003-04-13
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
Point2DD
public Point2DD(double x,
double y)
Point2DD
public Point2DD(PointXY pointXY)
Point2DD
public Point2DD(Point2D point2D)
Point2DD
public Point2DD()
main
public static void main(String[] args)
test
public static boolean test(String[] args)
setX
public void setX(double x)
setY
public void setY(double y)
setXY
public void setXY(PointXY pointXY)
setXY
public void setXY(double x,
double y)
setXY
public void setXY(Point point)
angleTo
public double angleTo(PointXY otherPointXY)
- The angle, in radians, from this point to the other point.
Note that the direction of 0 radians is along the positive x-axis
and PI/2 radians is along the positive y-axis.
- Specified by:
angleTo
in interface PointXY
distanceXY
public double distanceXY(PointXY otherPointXY)
- Specified by:
distanceXY
in interface PointXY
toString
public String toString()
- Overrides:
toString
in class Point2D.Double
CroftSoft Core Javadoc (2008-09-28 20:58:02)