pub struct PolygonVertex {
pub kind: PolygonVertexKind,
pub x: Coord,
pub y: Coord,
pub center_x: Coord,
pub center_y: Coord,
pub start_angle: f64,
pub end_angle: f64,
pub radius: Coord,
}Expand description
A vertex in the polygon outline.
Fields§
§kind: PolygonVertexKindVertex kind (line or arc).
x: CoordX coordinate of the vertex.
y: CoordY coordinate of the vertex.
center_x: CoordArc center X (for arc vertices).
center_y: CoordArc center Y (for arc vertices).
start_angle: f64Arc start angle in degrees.
end_angle: f64Arc end angle in degrees.
radius: CoordArc radius.
Trait Implementations§
Source§impl Clone for PolygonVertex
impl Clone for PolygonVertex
Source§fn clone(&self) -> PolygonVertex
fn clone(&self) -> PolygonVertex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolygonVertex
impl Debug for PolygonVertex
Source§impl Default for PolygonVertex
impl Default for PolygonVertex
Source§fn default() -> PolygonVertex
fn default() -> PolygonVertex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PolygonVertex
impl RefUnwindSafe for PolygonVertex
impl Send for PolygonVertex
impl Sync for PolygonVertex
impl Unpin for PolygonVertex
impl UnwindSafe for PolygonVertex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more