com.oxymel.ofc.charts.data
Class Point2D
java.lang.Object
|
+--com.oxymel.ofc.charts.data.Point2D
- public class Point2D
- extends java.lang.Object
Manage Point2D
Constructor Summary |
Point2D(double x,
double y)
Constructor |
Method Summary |
double |
getX()
Get X of point |
double |
getY()
Get Y of point |
boolean |
isSameXY(double x,
double y)
Compare if point has same x, y |
boolean |
isSameXY(Point2D pointToCompare)
Compare if point has same x, y |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Point2D
public Point2D(double x,
double y)
- Constructor
- Parameters:
x
- X of pointy
- Y of Point
getX
public double getX()
- Get X of point
- Returns:
- X of point
getY
public double getY()
- Get Y of point
- Returns:
- Y of point
isSameXY
public boolean isSameXY(double x,
double y)
- Compare if point has same x, y
- Parameters:
x
- x to comparey
- y to compare- Returns:
- true if point has same x, y
isSameXY
public boolean isSameXY(Point2D pointToCompare)
- Compare if point has same x, y
- Parameters:
pointToCompare
- point to compare- Returns:
- true if point has same x, y
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- formated string with x and y values
Copyright © 2005 Oxymel SA All Rights Reserved.