|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointView
Provides a view of an integer 2D point without allowing modifications.
Method Summary | |
---|---|
boolean |
equals(int x,
int y)
Returns whether this point represents the specified coordinates. |
double |
getDistanceFrom(PointView point)
Returns the distance from this point to the specified one. |
double |
getDistanceFromOrigin()
Returns the distance from this point to 0,0. |
PointView |
getDistancePoint(PointView point)
Returns the distance from this point to the specified one, as a PointView . |
Point |
getDistancePoint(PointView point,
Point reusable)
Returns the distance from this point to the specified one, as a Point . |
SizeView |
getDistanceSize(PointView point)
Returns the distance from this point to the specified one, as a SizeView . |
Size |
getDistanceSize(PointView point,
Size reusable)
Returns the distance from this point to the specified one in the same manner as getDistanceSize(PointView). |
PointView |
getOpposite()
Returns the point opposite to this one. |
Point |
getOpposite(Point reusable)
Returns the point opposite to this one. |
int |
getX()
Returns the X coordinate. |
int |
getY()
Returns the Y coordinate. |
Method Detail |
---|
int getX()
int getY()
double getDistanceFromOrigin()
double getDistanceFrom(PointView point)
PointView getDistancePoint(PointView point)
PointView
.
Point getDistancePoint(PointView point, Point reusable)
Point
. If the specified 2nd point is not null
,
it is reused and returned.
SizeView getDistanceSize(PointView point)
SizeView
. Note that this may differ from
getDistancePoint(PointView) because the dimensions of a
SizeView
are always non-negative.
Size getDistanceSize(PointView point, Size reusable)
Size
is not null
, it is reused and returned.
PointView getOpposite()
Point getOpposite(Point reusable)
null
, it is reused and returned.
boolean equals(int x, int y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |