boofcv.struct
Class RectangleRotate_F64
- java.lang.Object
-
- boofcv.struct.RectangleRotate_F64
-
public class RectangleRotate_F64 extends java.lang.ObjectA 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
Fields Modifier and Type Field and Description doublecxCenter point of rectangledoublecyCenter point of rectangledoubleheightheight of rectangledoublethetaAngle of rotation about rectangle's centerdoublewidthWidth of rectangle
-
Constructor Summary
Constructors Constructor and Description RectangleRotate_F64()RectangleRotate_F64(double cx, double cy, double width, double height, double theta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidset(RectangleRotate_F64 r)java.lang.StringtoString()
-
-
-
Field Detail
-
cx
public double cx
Center point of rectangle
-
cy
public double cy
Center point of rectangle
-
width
public double width
Width of rectangle
-
height
public double height
height of rectangle
-
theta
public double theta
Angle of rotation about rectangle's center
-
-
Constructor Detail
-
RectangleRotate_F64
public RectangleRotate_F64(double cx, double cy, double width, double height, double theta)
-
RectangleRotate_F64
public RectangleRotate_F64()
-
-
Method Detail
-
set
public void set(RectangleRotate_F64 r)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG