public class Point2D extends Object
Modifier and Type | Field and Description |
---|---|
static Point2D |
ORIGIN |
static Comparator<Point2D> |
X_COMPARATOR |
static Comparator<Point2D> |
Y_COMPARATOR |
Constructor and Description |
---|
Point2D() |
Point2D(double x,
double y) |
Point2D(Point2D p) |
Modifier and Type | Method and Description |
---|---|
Point2D |
add(double x,
double y) |
Point2D |
add(Point2D other) |
boolean |
equals(Object obj) |
double |
getX() |
double |
getY() |
int |
hashCode() |
Point2D |
scale(double factor) |
Point2D |
subtract(double x,
double y) |
Point2D |
subtract(Point2D other) |
String |
toString() |
Point2D |
translate(Vector2D v) |
public static final Point2D ORIGIN
public static final Comparator<Point2D> X_COMPARATOR
public static final Comparator<Point2D> Y_COMPARATOR
public Point2D()
public Point2D(double x, double y)
public Point2D(Point2D p)
Copyright © 2018. All rights reserved.