public class Geometry extends Object
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
static Point |
center(BoundingBox bbox)
Calculates the center of the given bounding box and returns a point representing that center.
|
static double |
euclideanDistance(Point a,
Point b)
Calculates the Eucledian distance between two points a and b.
|
static GeneralPath |
normalize(GeneralPath path) |
static GeneralPath |
toGeneralPath(Curve curve) |
public static GeneralPath toGeneralPath(Curve curve)
curve - public static GeneralPath normalize(GeneralPath path)
path - public static Point center(BoundingBox bbox)
bbox - Copyright © 2009–2018. All rights reserved.