Struct lyon_bezier::Triangle
[−]
[src]
pub struct Triangle { pub a: Point, pub b: Point, pub c: Point, }
Fields
a: Point
b: Point
c: Point
Methods
impl Triangle
[src]
fn contains_point(&self, point: Point) -> bool
[src]
fn bounding_rect(&self) -> Rect
[src]
Return the minimum bounding rectangle
fn ab(&self) -> LineSegment
[src]
fn ba(&self) -> LineSegment
[src]
fn bc(&self) -> LineSegment
[src]
fn cb(&self) -> LineSegment
[src]
fn ca(&self) -> LineSegment
[src]
fn ac(&self) -> LineSegment
[src]
fn transform(&self, transform: &Transform2D) -> Self
[src]
[Not implemented] Applies the transform to this triangle and returns the results.
fn intersects(&self, other: &Self) -> bool
[src]
Test for triangle-triangle intersection.
fn intersects_line_segment(&self, segment: &LineSegment) -> bool
[src]
Test for triangle-segment intersection.
Trait Implementations
impl Copy for Triangle
[src]
impl Clone for Triangle
[src]
fn clone(&self) -> Triangle
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more