com.croftsoft.core.math.geom
Class Point2DD

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.geom.Point2D.Double
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Constructor Summary
Point2DD()
           
Point2DD(double x, double y)
           
Point2DD(Point2D point2D)
           
Point2DD(PointXY pointXY)
           
 
Method Summary
 double angleTo(PointXY otherPointXY)
          The angle, in radians, from this point to the other point.
 double distanceXY(PointXY otherPointXY)
           
static void main(String[] args)
           
 void setX(double x)
           
 void setXY(double x, double y)
           
 void setXY(Point point)
           
 void setXY(PointXY pointXY)
           
 void setY(double y)
           
static boolean test(String[] args)
           
 String toString()
           
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.croftsoft.core.math.geom.PointXY
distance, getX, getY
 

Constructor Detail

Point2DD

public Point2DD(double x,
                double y)

Point2DD

public Point2DD(PointXY pointXY)

Point2DD

public Point2DD(Point2D point2D)

Point2DD

public Point2DD()
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)