| Package | Description |
|---|---|
| org.openimaj.math.geometry.shape |
| Modifier and Type | Class and Description |
|---|---|
class |
Circle
A circle shape
|
class |
Ellipse
An ellipse shape
|
class |
Polygon
A polygon, modelled as a list of vertices.
|
class |
Rectangle
A rectangle shape oriented to the axes.
|
class |
Rectangle3D
A rectangle in 3D space.
|
class |
RotatedRectangle
A rectangle rotated by an angle.
|
class |
Triangle
A triangle shape
|
class |
TriangulatedPolygon
A polygon that has been broken into triangles.
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
Shape.clone() |
Shape |
Shape.transform(Jama.Matrix transform) |
Shape |
RotatedRectangle.transform(Jama.Matrix transform) |
Shape |
Rectangle.transform(Jama.Matrix transform) |
Shape |
Ellipse.transform(Jama.Matrix transform) |
Shape |
Circle.transform(Jama.Matrix transform) |
| Modifier and Type | Method and Description |
|---|---|
double |
Triangle.intersectionArea(Shape that) |
double |
Shape.intersectionArea(Shape that)
Calls
Polygon.intersectionArea(Shape, int) with 1 step per pixel
dimension. |
double |
RotatedRectangle.intersectionArea(Shape that) |
double |
Rectangle.intersectionArea(Shape that) |
double |
Polygon.intersectionArea(Shape that)
Calls
Polygon.intersectionArea(Shape, int) with 1 step per pixel
dimension. |
double |
Ellipse.intersectionArea(Shape that) |
double |
Circle.intersectionArea(Shape that) |
double |
Triangle.intersectionArea(Shape that,
int nStepsPerDimention) |
double |
Shape.intersectionArea(Shape that,
int nStepsPerDimension)
Return an estimate for the area of the intersection of this polygon and
another polygon.
|
double |
RotatedRectangle.intersectionArea(Shape that,
int nStepsPerDimension) |
double |
Rectangle.intersectionArea(Shape that,
int nStepsPerDimension) |
double |
Polygon.intersectionArea(Shape that,
int nStepsPerDimension)
Return an estimate for the area of the intersection of this polygon and
another polygon.
|
double |
Ellipse.intersectionArea(Shape that,
int nStepsPerDimension) |
double |
Circle.intersectionArea(Shape that,
int nStepsPerDimention) |
| Constructor and Description |
|---|
TriangulatedPolygon(Shape shape)
Construct a
TriangulatedPolygon with a shape. |