| Package | Description |
|---|---|
| org.openimaj.math.geometry | |
| org.openimaj.math.geometry.line | |
| org.openimaj.math.geometry.point | |
| org.openimaj.math.geometry.shape | |
| org.openimaj.math.geometry.transforms |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
GeometricObject2d.calculateRegularBoundingBox()
Compute the regular (oriented to the axes) bounding box of the shape.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Line2d.calculateRegularBoundingBox() |
| Modifier and Type | Method and Description |
|---|---|
Line2d |
Line2d.lineWithinSquare(Rectangle r)
Given a rectangle, return the line that actually fits inside the
rectangle for this line
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PointList.calculateRegularBoundingBox()
Compute the regular (oriented to the axes) bounding box of the
PointList. |
| Modifier and Type | Class and Description |
|---|---|
class |
Rectangle3D
A rectangle in 3D space.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Triangle.calculateRegularBoundingBox() |
Rectangle |
RotatedRectangle.calculateRegularBoundingBox() |
Rectangle |
Rectangle.calculateRegularBoundingBox() |
Rectangle |
Polygon.calculateRegularBoundingBox()
Compute the regular (oriented to the axes) bounding box of the polygon.
|
Rectangle |
Ellipse.calculateRegularBoundingBox() |
Rectangle |
Circle.calculateRegularBoundingBox() |
Rectangle |
Rectangle.clone() |
Rectangle |
Rectangle.overlapping(Rectangle other)
Get the overlapping rectangle between this rectangle and another.
|
Rectangle |
Rectangle.union(Rectangle other)
Find the rectangle that just contains this rectangle and another
rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rectangle.isInside(Rectangle rect)
Test if the given rectangle is inside this one.
|
boolean |
Rectangle.isOverlapping(Rectangle other)
Test if rectangles overlap.
|
Rectangle |
Rectangle.overlapping(Rectangle other)
Get the overlapping rectangle between this rectangle and another.
|
double |
Rectangle.percentageOverlap(Rectangle other)
Compute the percentage by which the given rectangle overlaps this one.
|
Rectangle |
Rectangle.union(Rectangle other)
Find the rectangle that just contains this rectangle and another
rectangle.
|
| Constructor and Description |
|---|
Rectangle(Rectangle r)
Construct a Rectangle by copying from another rectangle.
|
RotatedRectangle(Rectangle regRect,
float rotation)
Construct with a regular
Rectangle rotated about its centroid |
| Modifier and Type | Method and Description |
|---|---|
static Jama.Matrix |
TransformUtilities.makeTransform(Rectangle from,
Rectangle to)
Create a transform to transform from one rectangle to another.
|