Interface RotatedRectangleWrapper<R,P>
-
- Type Parameters:
R
- Target type representing the rectangle which should be wrapped.P
- Target type representing of the rectangles point
- All Superinterfaces:
RectangleWrapper<R,P>
- All Known Implementing Classes:
OpenCVRotatedRectangleWrapper
public interface RotatedRectangleWrapper<R,P> extends RectangleWrapper<R,P>
Extension of the
RectangleWrapper
to also support Rotated Rectangles- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point2Wrapper<P>
getBottomLeftPoint()
List<Point2Wrapper<P>>
getPoints()
double
getRotation()
Point2Wrapper<P>
getTopRightPoint()
-
Methods inherited from interface science.aist.imaging.api.domain.wrapper.RectangleWrapper
getBottomRightPoint, getCenterPoint, getHeight, getRectangle, getTopLeftPoint, getWidth, setRectangle
-
-
-
-
Method Detail
-
getTopRightPoint
Point2Wrapper<P> getTopRightPoint()
- Returns:
- the top right point of the rectangle
-
getBottomLeftPoint
Point2Wrapper<P> getBottomLeftPoint()
- Returns:
- the bottom left point of the rectangle
-
getPoints
List<Point2Wrapper<P>> getPoints()
- Returns:
- Receive the corner points in order bottomLeft, topLeft, topRight, bottomRight
-
getRotation
double getRotation()
- Returns:
- the angle / getRotation of the rectangle in radians
-
-