pub trait RotatedRectTrait: RotatedRectTraitConst {
    fn as_raw_mut_RotatedRect(&mut self) -> *mut c_void;

    fn set_center(&mut self, val: Point2f) { ... }
    fn set_size(&mut self, val: Size2f) { ... }
    fn set_angle(&mut self, val: f32) { ... }
}

Required Methods§

Provided Methods§

returns the rectangle mass center

returns width and height of the rectangle

returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.

Implementors§