[][src]Struct math2d::ArcSegment

#[repr(C)]
pub struct ArcSegment { pub point: Point2f, pub size: Sizef, pub rotation_angle: f32, pub sweep_direction: SweepDirection, pub arc_size: ArcSize, }

Describes an elliptical arc between two points. The starting point is implicit when an ArcSegment is used as part of a Path, as it is a continuation from the previous segment.

Fields

point: Point2f

The end point of the arc.

size: Sizef

The x and y radius of the arc.

rotation_angle: f32

A value that specifies how many degrees in the clockwise direction the ellipse is rotated relative to the current coordinate system.

sweep_direction: SweepDirection

A value that specifies whether the arc sweep is clockwise or counterclockwise.

arc_size: ArcSize

A value that specifies whether the given arc is larger than 180 degrees.

Methods

impl ArcSegment[src]

pub fn new(
    point: impl Into<Point2f>,
    size: impl Into<Sizef>,
    rotation_angle: f32,
    sweep_direction: SweepDirection,
    arc_size: ArcSize
) -> ArcSegment
[src]

Constructs an ArcSegment from its parts, more conveniently allowing types that may be converted into Point and Size (such as tuples of floats)

Trait Implementations

impl PartialEq<ArcSegment> for ArcSegment[src]

impl Default for ArcSegment[src]

impl Clone for ArcSegment[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<ArcSegment> for D2D1_ARC_SEGMENT[src]

impl Copy for ArcSegment[src]

impl Debug for ArcSegment[src]

impl Serialize for ArcSegment[src]

impl<'de> Deserialize<'de> for ArcSegment[src]

Auto Trait Implementations

impl Send for ArcSegment

impl Sync for ArcSegment

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]