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

Object Safety§

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§