Struct lyon_bezier::LineSegment [] [src]

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

Fields

Methods

impl LineSegment
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Split this curve into two sub-segments.

[src]

Return the segment before the split point.

[src]

Return the segment after the split point.

[src]

Return the minimum bounding rectangle

[src]

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

[src]

Returns the line containing this segment.

[src]

Computes the length of this segment.

[src]

[src]

Applies the transform to this segment and returns the results.

[src]

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

[src]

Trait Implementations

impl Copy for LineSegment
[src]

impl Clone for LineSegment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LineSegment
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for LineSegment
[src]

[src]

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

[src]

This method tests for !=.