public class RectangleRotate_F32
extends java.lang.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.
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.
| Modifier and Type | Field and Description |
|---|---|
float |
cx |
float |
cy |
float |
height |
float |
theta |
float |
width |
| Constructor and Description |
|---|
RectangleRotate_F32() |
RectangleRotate_F32(float cx,
float cy,
float width,
float height,
float theta) |
| Modifier and Type | Method and Description |
|---|---|
void |
set(RectangleRotate_F32 r) |
java.lang.String |
toString() |
public float cx
public float cy
public float width
public float height
public float theta
public RectangleRotate_F32(float cx,
float cy,
float width,
float height,
float theta)
public RectangleRotate_F32()
public void set(RectangleRotate_F32 r)
public java.lang.String toString()
toString in class java.lang.Object