Package boofcv.struct
Class RectangleRotate_F64
java.lang.Object
boofcv.struct.RectangleRotate_F64
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 Summary
-
Constructor Summary
ConstructorDescriptionRectangleRotate_F64
(double cx, double cy, double width, double height, double theta) -
Method Summary
-
Field Details
-
cx
public double cxCenter point of rectangle -
cy
public double cyCenter point of rectangle -
width
public double widthWidth of rectangle -
height
public double heightheight of rectangle -
theta
public double thetaAngle of rotation about rectangle's center
-
-
Constructor Details
-
RectangleRotate_F64
public RectangleRotate_F64(double cx, double cy, double width, double height, double theta) -
RectangleRotate_F64
public RectangleRotate_F64()
-
-
Method Details