☰
Edge
Methods
is_bisected
line
new
Trait Implementations
Intersection<NGon<T, 2_usize>>
Rotate
In plexus::primitive
?
Type Definition
plexus
::
primitive
::
Edge
source
·
[
−
]
pub type Edge<G> =
NGon
<G, 2>;
Implementations
source
impl<G>
Edge
<G>
source
pub fn
new
(a: G, b: G) -> Self
source
pub fn
line
(&self) ->
Option
<
Line
<
Position
<G>>>
where
G:
AsPosition
,
source
pub fn
is_bisected
(&self, other:
&
Self) ->
bool
where
G:
AsPosition
,
Position
<G>:
FiniteDimensional
<N =
U2
>,
Trait Implementations
source
impl<T>
Intersection
<
NGon
<T, 2_usize>> for
Edge
<T>
where
T:
AsPosition
,
Position
<T>:
FiniteDimensional
<N =
U2
>,
type
Output
=
EdgeEdge
<<T as
AsPosition
>::
Position
>
source
fn
intersection
(&self, other: &
Edge
<T>) ->
Option
<Self::
Output
>
source
impl<T>
Rotate
for
Edge
<T>
source
fn
rotate
(self, n:
isize
) -> Self