#[repr(C)]pub struct Circle {
pub center: Point,
pub radius: i32,
pub color: Scalar,
pub thick: i32,
pub lt: i32,
pub shift: i32,
}
Expand description
This structure represents a circle to draw.
Parameters match cv::circle().
Fields§
§center: Point
The center of the circle
radius: i32
The radius of the circle
color: Scalar
The color of the circle
thick: i32
The thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn
lt: i32
The Type of the circle boundary. See #LineTypes
shift: i32
The Number of fractional bits in the coordinates of the center and in the radius value
Implementations§
source§impl Circle
impl Circle
sourcepub fn new(
center_: Point,
radius_: i32,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Circle>
pub fn new( center_: Point, radius_: i32, color_: Scalar, thick_: i32, lt_: i32, shift_: i32 ) -> Result<Circle>
Circle constructor
Parameters
- center_: The center of the circle
- radius_: The radius of the circle
- color_: The color of the circle
- thick_: The thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn
- lt_: The Type of the circle boundary. See #LineTypes
- shift_: The Number of fractional bits in the coordinates of the center and in the radius value
C++ default parameters
- thick_: 1
- lt_: 8
- shift_: 0
pub fn default() -> Circle
Trait Implementations§
source§impl PartialEq<Circle> for Circle
impl PartialEq<Circle> for Circle
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more