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

    // Provided methods
    fn set_center(&mut self, val: Point2f) { ... }
    fn set_size(&mut self, val: Size2f) { ... }
    fn set_angle(&mut self, val: f32) { ... }
}
Expand description

Mutable methods for core::RotatedRect

Required Methods§

Provided Methods§

source

fn set_center(&mut self, val: Point2f)

returns the rectangle mass center

source

fn set_size(&mut self, val: Size2f)

returns width and height of the rectangle

source

fn set_angle(&mut self, val: f32)

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

Implementors§