Struct piet_common::kurbo::SvgArc

pub struct SvgArc {
    pub from: Point,
    pub to: Point,
    pub radii: Vec2,
    pub x_rotation: f64,
    pub large_arc: bool,
    pub sweep: bool,
}
Expand description

A single SVG arc segment.

Fields

from: Point

The arc’s start point.

to: Point

The arc’s end point.

radii: Vec2

The arc’s radii, where the vector’s x-component is the radius in the positive x direction after applying x_rotation.

x_rotation: f64

How much the arc is rotated, in radians.

large_arc: bool

Does this arc sweep through more than π radians?

sweep: bool

Determines if the arc should begin moving at positive angles.

Implementations

Checks that arc is actually a straight line.

In this case, it can be replaced with a LineTo.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.
Performs the conversion.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.