Struct lyon_bezier::LineSegment [] [src]

pub struct LineSegment {
    pub from: Point,
    pub to: Point,
}

Fields

Methods

impl LineSegment
[src]

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

Sample the x coordinate of the segment at t (expecting t between 0 and 1).

Sample the y coordinate of the segment at t (expecting t between 0 and 1).

Returns an inverted version of this segment where the beginning and the end points are swapped.

Split this curve into two sub-segments.

Return the segment before the split point.

Return the segment after the split point.

Return the minimum bounding rectangle

Returns the vector between this segment's from and to points.

Returns the line containing this segment.

Computes the length of this segment.

Applies the transform to this segment and returns the results.

Computes the intersection (if any) between this segment and another one.

Trait Implementations

impl Copy for LineSegment
[src]

impl Clone for LineSegment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LineSegment
[src]

Formats the value using the given formatter.

impl PartialEq for LineSegment
[src]

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

This method tests for !=.