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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SvgArc
impl<'de> Deserialize<'de> for SvgArc
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for SvgArc
impl JsonSchema for SvgArc
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read more