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§
sourcetype Coordinate: Real
type Coordinate: Real
The type of the individual x
and y
coordinates
Required Methods§
sourcefn x(&self) -> Self::Coordinate
fn x(&self) -> Self::Coordinate
The x Vertex::Coordinate value
sourcefn y(&self) -> Self::Coordinate
fn y(&self) -> Self::Coordinate
The y Vertex::Coordinate value