public class Point2D
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Point2D(double x,
double y) |
Point2D(Point2D point) |
Modifier and Type | Method and Description |
---|---|
Point2D |
add(Vector2D v) |
double |
distance(double x,
double y) |
double |
distance(Point2D that) |
Vector2D |
minus(Point2D that) |
static int |
orientationOf(Point2D v1,
Point2D v2,
Point2D v) |
java.lang.String |
toString() |
Point2D |
transform(java.awt.geom.AffineTransform t) |
double |
x() |
double |
y() |
public static Point2D orig
public Point2D(double x, double y)
public Point2D(Point2D point)
public double x()
public double y()
public double distance(Point2D that)
public double distance(double x, double y)
public static int orientationOf(Point2D v1, Point2D v2, Point2D v)
public Point2D transform(java.awt.geom.AffineTransform t)
public java.lang.String toString()
toString
in class java.lang.Object