|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.util.GeomUtil
public class GeomUtil
Utility methods for geometric manipulation.
Method Summary | |
---|---|
Shape |
convertArcIntoFan(Arc2D arc,
double halfWidth)
Convert an arc into a fan (i.e., an arc-shape shape with width) |
Shape |
convertLineIntoRectangle(Line2D line,
double halfWidth)
Convert a line into a rectangle |
static Shape |
convertPointsToShape(Point2D[] points)
Construct a shape out of a set of corner points. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Shape convertLineIntoRectangle(Line2D line, double halfWidth)
line
- the linehalfWidth
- half of the width of the rectangle
public Shape convertArcIntoFan(Arc2D arc, double halfWidth)
arc
- the archalfWidth
- half of the width of the fan
public static Shape convertPointsToShape(Point2D[] points)
points
- a set of points at the corners of the shape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |