#[repr(C)]pub struct Triangle {
pub p1: Point2f,
pub p2: Point2f,
pub p3: Point2f,
}Expand description
Represents a triangle described by its 3 corners.
Fields§
§p1: Point2fThe first point
p2: Point2fThe second point
p3: Point2fThe third point
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Triangle
impl<'de> Deserialize<'de> for Triangle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P1, P2, P3> From<(P1, P2, P3)> for Triangle
impl<P1, P2, P3> From<(P1, P2, P3)> for Triangle
Source§fn from((p1, p2, p3): (P1, P2, P3)) -> Triangle
fn from((p1, p2, p3): (P1, P2, P3)) -> Triangle
Converts to this type from the input type.
Source§impl From<D2D1_TRIANGLE> for Triangle
Available on Windows and crate feature d2d only.
impl From<D2D1_TRIANGLE> for Triangle
Available on Windows and crate feature
d2d only.Source§fn from(seg: D2D1_TRIANGLE) -> Triangle
fn from(seg: D2D1_TRIANGLE) -> Triangle
Converts to this type from the input type.
Source§impl From<Triangle> for D2D1_TRIANGLE
Available on Windows and crate feature d2d only.
impl From<Triangle> for D2D1_TRIANGLE
Available on Windows and crate feature
d2d only.Source§fn from(seg: Triangle) -> D2D1_TRIANGLE
fn from(seg: Triangle) -> D2D1_TRIANGLE
Converts to this type from the input type.
impl Copy for Triangle
impl StructuralPartialEq for Triangle
Auto Trait Implementations§
impl Freeze for Triangle
impl RefUnwindSafe for Triangle
impl Send for Triangle
impl Sync for Triangle
impl Unpin for Triangle
impl UnsafeUnpin for Triangle
impl UnwindSafe for Triangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more