Struct lyon_geom::Triangle
[−]
[src]
pub struct Triangle<S> { pub a: Point<S>, pub b: Point<S>, pub c: Point<S>, }
A 2D triangle defined by three points a
, b
and c
.
Fields
a: Point<S>
b: Point<S>
c: Point<S>
Methods
impl<S: Scalar> Triangle<S>
[src]
fn contains_point(&self, point: Point<S>) -> bool
[src]
fn bounding_rect(&self) -> Rect<S>
[src]
Return the minimum bounding rectangle.
fn ab(&self) -> LineSegment<S>
[src]
fn ba(&self) -> LineSegment<S>
[src]
fn bc(&self) -> LineSegment<S>
[src]
fn cb(&self) -> LineSegment<S>
[src]
fn ca(&self) -> LineSegment<S>
[src]
fn ac(&self) -> LineSegment<S>
[src]
fn transform(&self, transform: &Transform2D<S>) -> 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<S>) -> bool
[src]
Test for triangle-segment intersection.
Trait Implementations
impl<S: Copy> Copy for Triangle<S>
[src]
impl<S: Clone> Clone for Triangle<S>
[src]
fn clone(&self) -> Triangle<S>
[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