pub trait Vertex2d: Vertex {
    // Required method
    fn point2(self) -> [Self::Scalar; 2];
}
Expand description

Vertex types that have at least 2 dimensions.

Required Methods§

source

fn point2(self) -> [Self::Scalar; 2]

The x, y location of the vertex.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S> Vertex2d for [S; 2]
where S: Scalar,

source§

fn point2(self) -> [Self::Scalar; 2]

source§

impl<S> Vertex2d for [S; 3]
where S: Scalar,

source§

fn point2(self) -> [Self::Scalar; 2]

source§

impl<S> Vertex2d for (S, S)
where S: Scalar,

source§

fn point2(self) -> [Self::Scalar; 2]

source§

impl<S> Vertex2d for (S, S, S)
where S: Scalar,

source§

fn point2(self) -> [Self::Scalar; 2]

Implementors§