Struct lyon_geom::Arc [] [src]

pub struct Arc<S> {
    pub center: Point<S>,
    pub radii: Vector<S>,
    pub start_angle: Angle<S>,
    pub sweep_angle: Angle<S>,
    pub x_rotation: Angle<S>,
}

An ellipic arc curve segment.

Fields

Methods

impl<S: Scalar> Arc<S>
[src]

[src]

[src]

[src]

[src]

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

[src]

[src]

[src]

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

[src]

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

[src]

[src]

[src]

[src]

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

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

[src]

Split this curve into two sub-curves.

[src]

Return the curve before the split point.

[src]

Return the curve after the split point.

[src]

Swap the direction of the segment.

[src]

Approximates the arc with a sequence of line segments.

[src]

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

[src]

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

[src]

Returns a conservative rectangle that contains the curve.

[src]

[src]

[src]

Trait Implementations

impl<S: Copy> Copy for Arc<S>
[src]

impl<S: Clone> Clone for Arc<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Arc<S>
[src]

[src]

Formats the value using the given formatter.

impl<S: PartialEq> PartialEq for Arc<S>
[src]

[src]

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

[src]

This method tests for !=.

impl<S: Scalar> Segment for Arc<S>
[src]

[src]

Start of the curve.

[src]

End of the curve.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Split this curve into two sub-curves.

[src]

Return the curve before the split point.

[src]

Return the curve after the split point.

[src]

Swap the direction of the segment.

[src]

Compute the length of the segment using a flattened approximation.

[src]

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

[src]

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

impl<S: Scalar> FlatteningStep for Arc<S>
[src]

[src]

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

[src]

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