[−][src]Struct lyon_geom::Triangle
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]
pub fn contains_point(&self, point: Point<S>) -> bool
[src]
pub fn bounding_rect(&self) -> Rect<S>
[src]
Return the minimum bounding rectangle.
pub fn ab(&self) -> LineSegment<S>
[src]
pub fn ba(&self) -> LineSegment<S>
[src]
pub fn bc(&self) -> LineSegment<S>
[src]
pub fn cb(&self) -> LineSegment<S>
[src]
pub fn ca(&self) -> LineSegment<S>
[src]
pub fn ac(&self) -> LineSegment<S>
[src]
pub fn transform(&self, transform: &Transform2D<S>) -> Self
[src]
[Not implemented] Applies the transform to this triangle and returns the results.
pub fn intersects(&self, other: &Self) -> bool
[src]
Test for triangle-triangle intersection.
pub fn intersects_line_segment(&self, segment: &LineSegment<S>) -> bool
[src]
Test for triangle-segment intersection.
Trait Implementations
impl<S: Clone> Clone for Triangle<S>
[src]
fn clone(&self) -> Triangle<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Copy> Copy for Triangle<S>
[src]
impl<S: PartialEq> PartialEq<Triangle<S>> for Triangle<S>
[src]
impl<S: Debug> Debug for Triangle<S>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,