Expand description
Represents a triangle described by its 3 corners.
Fields§
§p1: Point2f
The first point
p2: Point2f
The second point
p3: Point2f
The 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 Trianglewhere
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>,
impl<P1, P2, P3> From<(P1, P2, P3)> for Trianglewhere
P1: Into<Point2f>,
P2: Into<Point2f>,
P3: Into<Point2f>,
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
impl From<D2D1_TRIANGLE> for Triangle
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
impl From<Triangle> for D2D1_TRIANGLE
source§fn from(seg: Triangle) -> D2D1_TRIANGLE
fn from(seg: Triangle) -> D2D1_TRIANGLE
Converts to this type from the input type.