public class Geometry extends Object
| Constructor and Description |
|---|
Geometry() |
| Modifier and Type | Method and Description |
|---|---|
static SizeD |
getBoundingBoxSize(double width,
double height,
double angle)
Returns the size of axis-aligned bounding box for the rectangle with given size and rotate angle.
|
protected static double |
getRectangleMaxX(PointD[] points) |
protected static double |
getRectangleMaxY(PointD[] points) |
protected static double |
getRectangleMinX(PointD[] points) |
protected static double |
getRectangleMinY(PointD[] points) |
protected static PointD |
getRotatedRectangleVertex(PointD vertex,
PointD centerOfRotation,
double angle)
Gets rotated rectangle vertex coordinates.
|
public static SizeD getBoundingBoxSize(double width, double height, double angle)
Returns the size of axis-aligned bounding box for the rectangle with given size and rotate angle.
width - Width of inscribed rectangle.height - Height of inscribed rectangle.angle - Rotate angle.protected static double getRectangleMaxX(PointD[] points)
protected static double getRectangleMaxY(PointD[] points)
protected static double getRectangleMinX(PointD[] points)
protected static double getRectangleMinY(PointD[] points)
protected static PointD getRotatedRectangleVertex(PointD vertex, PointD centerOfRotation, double angle)
Gets rotated rectangle vertex coordinates.
vertex - Vertex coordinates.centerOfRotation - Center of rotation.angle - Rotation angle.Copyright © 2026. All rights reserved.