Struct lyon::geom::Arc []

pub struct Arc<S> {
    pub center: TypedPoint2D<S, UnknownUnit>,
    pub radii: TypedVector2D<S, UnknownUnit>,
    pub start_angle: Angle<S>,
    pub sweep_angle: Angle<S>,
    pub x_rotation: Angle<S>,
}

An ellipic arc curve segment.

Fields

Methods

impl<S> Arc<S> where
    S: Scalar, 

Sample the curve at t (expecting t between 0 and 1).

Sample the curve's tangent at t (expecting t between 0 and 1).

Sample the curve's angle at t (expecting t between 0 and 1).

Return the sub-curve inside a given range of t.

This is equivalent splitting at the range's end points.

Split this curve into two sub-curves.

Return the curve before the split point.

Return the curve after the split point.

Swap the direction of the segment.

Approximates the arc with a sequence of line segments.

Finds the interval of the begining of the curve that can be approximated with a line segment.

Returns the flattened representation of the curve as an iterator, starting after the current point.

Returns a conservative rectangle that contains the curve.

Trait Implementations

impl<S> Into<Arc<S>> for SvgArc<S> where
    S: Scalar, 

Performs the conversion.

impl<S> Copy for Arc<S> where
    S: Copy

impl<S> PartialEq<Arc<S>> for Arc<S> where
    S: PartialEq<S>, 

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S> Segment for Arc<S> where
    S: Scalar, 

Start of the curve.

End of the curve.

Sample the curve at t (expecting t between 0 and 1).

Sample x at t (expecting t between 0 and 1).

Sample y at t (expecting t between 0 and 1).

Sample the derivative at t (expecting t between 0 and 1).

Return the curve inside a given range of t. Read more

Split this curve into two sub-curves.

Return the curve before the split point.

Return the curve after the split point.

Swap the direction of the segment.

Compute the length of the segment using a flattened approximation.

Sample x derivative at t (expecting t between 0 and 1).

Sample y derivative at t (expecting t between 0 and 1).

impl<S> Clone for Arc<S> where
    S: Clone

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S> FlatteningStep for Arc<S> where
    S: Scalar, 

Find the interval of the begining of the curve that can be approximated with a line segment. Read more

Returns the flattened representation of the curve as an iterator, starting after the current point. Read more

impl<S> Debug for Arc<S> where
    S: Debug

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Arc<S> where
    S: Send

impl<S> Sync for Arc<S> where
    S: Sync