Package | Description |
---|---|
pythagoras.i |
The Pythagoras geometry utility classes specialized on
int . |
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.add(IPoint p)
Expands the bounds of this rectangle to contain the supplied point.
|
boolean |
IShape.contains(IPoint point)
Returns true if this shape contains the supplied point.
|
boolean |
AbstractRectangle.contains(IPoint point) |
int |
IPoint.distance(IPoint p)
Returns the Euclidian distance between this point and the supplied point.
|
int |
AbstractPoint.distance(IPoint p) |
int |
IPoint.distanceSq(IPoint p)
Returns the squared Euclidian distance between this point and the supplied point.
|
int |
AbstractPoint.distanceSq(IPoint p) |
int |
IRectangle.outcode(IPoint point)
Returns a set of flags indicating where the supplied point lies in relation to the bounds of
this rectangle.
|
int |
AbstractRectangle.outcode(IPoint p) |
Point |
Point.set(IPoint p)
Sets the coordinates of this point to be equal to those of the supplied point.
|
void |
Rectangle.setLocation(IPoint p)
Sets the upper-left corner of this rectangle to the supplied point.
|
void |
Point.setLocation(IPoint p)
Sets the coordinates of this point to be equal to those of the supplied point.
|
Point |
IPoint.subtract(IPoint other,
Point result)
Subtracts the supplied point from
this and stores the result in result . |
Point |
AbstractPoint.subtract(IPoint other,
Point result) |
Constructor and Description |
---|
Point(IPoint p)
Constructs a point with coordinates equal to the supplied point.
|
Rectangle(IPoint p)
Constructs a rectangle with the supplied upper-left corner and dimensions (0,0).
|
Rectangle(IPoint p,
IDimension d)
Constructs a rectangle with upper-left corner at the supplied point and with the supplied
dimensions.
|
Copyright © 2017. All rights reserved.