[−][src]Struct math2d::ArcSegment
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]
point: impl Into<Point2f>,
size: impl Into<Sizef>,
rotation_angle: f32,
sweep_direction: SweepDirection,
arc_size: ArcSize
) -> ArcSegment
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]
fn eq(&self, other: &ArcSegment) -> bool
[src]
fn ne(&self, other: &ArcSegment) -> bool
[src]
impl Default for ArcSegment
[src]
fn default() -> ArcSegment
[src]
impl Clone for ArcSegment
[src]
fn clone(&self) -> 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]
fn from(seg: ArcSegment) -> D2D1_ARC_SEGMENT
[src]
impl Copy for ArcSegment
[src]
impl Debug for ArcSegment
[src]
impl Serialize for ArcSegment
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ArcSegment
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,