Package boofcv.struct

Class RectangleRotate_F32

java.lang.Object
boofcv.struct.RectangleRotate_F32

@Generated("boofcv.struct.RectangleRotate_F64")
public class RectangleRotate_F32
extends Object

A rectangle which can be rotated. Angle of rotation is relative to +x axis, which is along the rectangle's width. +y is along its height. Point of rotation is the rectangle's center.

Conversion from rectangle to parent frame:
x' = x*cos(theta) - y*sin(theta) + cx;
y' = x*sin(theta) + y*cos(theta) + cy;
where (x,y) are points in the rectangle's frame.

  • Field Details

    • cx

      public float cx
      Center point of rectangle
    • cy

      public float cy
      Center point of rectangle
    • width

      public float width
      Width of rectangle
    • height

      public float height
      height of rectangle
    • theta

      public float theta
      Angle of rotation about rectangle's center
  • Constructor Details

    • RectangleRotate_F32

      public RectangleRotate_F32​(float cx, float cy, float width, float height, float theta)
    • RectangleRotate_F32

      public RectangleRotate_F32()
  • Method Details