Struct lyon::bezier::LineSegment [] [src]

pub struct LineSegment {
    pub from: TypedPoint2D<f32, UnknownUnit>,
    pub to: TypedPoint2D<f32, UnknownUnit>,
}

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]

impl PartialEq<LineSegment> for LineSegment
[src]

[src]

[src]

impl Debug for LineSegment
[src]

[src]