- centerPoint
Returns the point in the center of the given rectangle.
- moveInside
Repositions the 'inner' rectangle to lie completely within the bounds of the
'outer' rectangle if po
- toDisplay
Converts the given rectangle from the local coordinate system of the given
object into display coord
- copy
Returns a copy of the given rectangle
- createRectangle
Returns a new rectangle with the given position and dimensions, expressed as
points.
- distanceSquared
Returns the square of the distance between two points.This is preferred over the
real distance when
- getClosestSide
Returns the edge of the given rectangle is closest to the given point.
- getDistanceFromEdge
Returns the distance of the given point from a particular side of the given
rectangle. Returns negat
- getSize
Returns the size of the rectangle, as a Point
- isHorizontal
Returns true iff the given SWT side constant corresponds to a horizontal side of
a rectangle. That i
- magnitudeSquared
Returns the square of the magnitude of the given 2-space vector (represented
using a point)
- normalize
Normalizes the given rectangle. That is, any rectangle with negative width or
height becomes a recta