rgeometry

Trait PolygonScalar

Source
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§

Source

fn from_constant(val: i8) -> Self

Source

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source

fn cmp_vector_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source

fn cmp_perp_vector_slope( p: &[Self; 2], q: &[Self; 2], r: &[Self; 2], ) -> Ordering

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PolygonScalar for f32

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for f64

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for i8

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for i16

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for i32

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for i64

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for isize

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for BigInt

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for NotNan<f32>

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for NotNan<f64>

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for OrderedFloat<f32>

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for OrderedFloat<f64>

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

impl PolygonScalar for BigRational

Source§

fn from_constant(val: i8) -> Self

Source§

fn cmp_dist(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_slope(p: &[Self; 2], q: &[Self; 2], r: &[Self; 2]) -> Ordering

Source§

fn cmp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Source§

fn cmp_perp_vector_slope( vector: &[Self; 2], p: &[Self; 2], q: &[Self; 2], ) -> Ordering

Implementors§