☰
Trigon
Methods
new
plane
Trait Implementations
IntoSubdivisions
IntoTrigons
Rotate
In plexus::primitive
?
Type Definition
plexus
::
primitive
::
Trigon
source
·
[
−
]
pub type Trigon<G> =
NGon
<G, 3>;
Expand description
Triangle.
Implementations
source
impl<G>
Trigon
<G>
source
pub fn
new
(a: G, b: G, c: G) -> Self
source
pub fn
plane
(&self) ->
Option
<
Plane
<
Position
<G>>>
where
G:
AsPosition
,
Position
<G>:
EuclideanSpace
+
FiniteDimensional
<N =
U3
>,
Vector
<
Position
<G>>:
Cross
<Output =
Vector
<
Position
<G>>>,
Trait Implementations
source
impl<T>
IntoSubdivisions
for
Trigon
<T>
where
T:
Clone
+
Interpolate
<Output = T>,
type
Output
=
ArrayVec
<
NGon
<<
NGon
<T, 3_usize> as
Topological
>::
Vertex
, 3_usize>, 2_usize>
source
fn
into_subdivisions
(self) -> Self::
Output
source
impl<T>
IntoTrigons
for
Trigon
<T>
type
Output
=
ArrayVec
<
NGon
<<
NGon
<T, 3_usize> as
Topological
>::
Vertex
, 3_usize>, 1_usize>
source
fn
into_trigons
(self) -> Self::
Output
source
impl<G>
Rotate
for
Trigon
<G>
source
fn
rotate
(self, n:
isize
) -> Self