pub trait PolygonScalar:
Debug
+ Neg<Output = Self>
+ NumAssignOps
+ NumOps<Self, Self>
+ TotalOrd
+ PartialOrd
+ Sum
+ Clone {
// Required methods
fn from_constant(val: i8) -> Self;
fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering;
fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering;
fn cmp_vector_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering;
fn cmp_perp_vector_slope(
p: &[Self; 2],
q: &[Self; 2],
r: &[Self; 2],
) -> Ordering;
}
Required Methods§
fn from_constant(val: i8) -> Self
fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering
fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering
fn cmp_vector_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering
fn cmp_perp_vector_slope( p: &[Self; 2], q: &[Self; 2], r: &[Self; 2], ) -> Ordering
Object Safety§
This trait is not object safe.