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 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