boofcv.struct
Class RectangleRotate_F32
- java.lang.Object
-
- boofcv.struct.RectangleRotate_F32
-
public class RectangleRotate_F32 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.
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 floatcxfloatcyfloatheightfloatthetafloatwidth
-
Constructor Summary
Constructors Constructor and Description RectangleRotate_F32()RectangleRotate_F32(float cx, float cy, float width, float height, float theta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidset(RectangleRotate_F32 r)java.lang.StringtoString()
-
-
-
Field Detail
-
cx
public float cx
-
cy
public float cy
-
width
public float width
-
height
public float height
-
theta
public float theta
-
-
Constructor Detail
-
RectangleRotate_F32
public RectangleRotate_F32(float cx, float cy, float width, float height, float theta)
-
RectangleRotate_F32
public RectangleRotate_F32()
-
-
Method Detail
-
set
public void set(RectangleRotate_F32 r)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG