pub trait Vertex: Clone + Copy + PartialEq {
    type Scalar: Scalar;
}
Expand description

Types used as vertices that can be used to describe geometric points in space.

Required Associated Types§

source

type Scalar: Scalar

The values used to describe the vertex position.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

§

type Scalar = S

source§

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

§

type Scalar = S

source§

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

§

type Scalar = S

source§

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

§

type Scalar = S

Implementors§

source§

impl Vertex for DVec2

§

type Scalar = f64

source§

impl Vertex for DVec3

§

type Scalar = f64

source§

impl Vertex for IVec2

§

type Scalar = i32

source§

impl Vertex for IVec3

§

type Scalar = i32

source§

impl Vertex for Vec2

§

type Scalar = f32

source§

impl Vertex for Vec3

§

type Scalar = f32

source§

impl<V, C> Vertex for WithColor<V, C>
where V: Vertex, C: Clone + Copy + PartialEq,

§

type Scalar = <V as Vertex>::Scalar

source§

impl<V, N> Vertex for WithNormal<V, N>
where V: Vertex, N: Clone + Copy + PartialEq,

§

type Scalar = <V as Vertex>::Scalar

source§

impl<V, T> Vertex for WithTexCoords<V, T>
where V: Vertex, T: Clone + Copy + PartialEq,

§

type Scalar = <V as Vertex>::Scalar