public class GeomUtil extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public Shape convertLineIntoRectangle(Line2D line, double halfWidth)
line
- the linehalfWidth
- half of the width of the rectanglepublic Shape convertArcIntoFan(Arc2D arc, double halfWidth)
arc
- the archalfWidth
- half of the width of the fanCopyright © 2013. All rights reserved.