Trait triangulate::Vertex

source ·
pub trait Vertex {
    type Coordinate: Real;

    // Required methods
    fn x(&self) -> Self::Coordinate;
    fn y(&self) -> Self::Coordinate;
}
Expand description

A two-dimensional point.

The coordinate type must implement num_traits::real::Real, reexported as crate::Real.

Required Associated Types§

source

type Coordinate: Real

The type of the individual x and y coordinates

Required Methods§

source

fn x(&self) -> Self::Coordinate

The x Vertex::Coordinate value

source

fn y(&self) -> Self::Coordinate

The y Vertex::Coordinate value

Implementations on Foreign Types§

source§

impl<C: Debug + Real> Vertex for [C; 2]

§

type Coordinate = C

source§

fn x(&self) -> Self::Coordinate

source§

fn y(&self) -> Self::Coordinate

source§

impl<C: Debug + Real> Vertex for (C, C)

§

type Coordinate = C

source§

fn x(&self) -> Self::Coordinate

source§

fn y(&self) -> Self::Coordinate

Implementors§