public class Point2D
extends java.lang.Object
NOTE: This API is still in flux and might change in incompatible ways in the next release.
Constructor and Description |
---|
Point2D() |
Point2D(double x,
double y) |
Point2D(Point2D other) |
Modifier and Type | Method and Description |
---|---|
void |
add(Point2D a) |
void |
add(Vector2D v) |
boolean |
equals(java.lang.Object obj) |
double |
getX() |
double |
getY() |
int |
hashCode() |
void |
set(double x,
double y) |
void |
set(Point2D p1) |
void |
set(Vector2D v) |
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString() |
double |
x() |
void |
x(double x) |
double |
y() |
void |
y(double y) |
public Point2D(double x, double y)
public Point2D()
public Point2D(Point2D other)
public java.lang.String toString()
toString
in class java.lang.Object
public double getX()
public double getY()
public double x()
public double y()
public void x(double x)
public void y(double y)
public void setX(double x)
public void setY(double y)
public void set(double x, double y)
public void add(Vector2D v)
public void set(Point2D p1)
public void add(Point2D a)
public void set(Vector2D v)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.