Trait nannou::geom::vertex::Vertex2d

source ·
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) -> [<[S; 2] as Vertex>::Scalar; 2]

source§

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

source§

fn point2(self) -> [<[S; 3] as Vertex>::Scalar; 2]

source§

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

source§

fn point2(self) -> [<(S, S) as Vertex>::Scalar; 2]

source§

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

source§

fn point2(self) -> [<(S, S, S) as Vertex>::Scalar; 2]

Implementors§

source§

impl Vertex2d for DVec2

source§

impl Vertex2d for DVec3

source§

impl Vertex2d for IVec2

source§

impl Vertex2d for IVec3

source§

impl Vertex2d for Vec2

source§

impl Vertex2d for Vec3

source§

impl<V, C> Vertex2d for WithColor<V, C>
where V: Vertex2d, WithColor<V, C>: Vertex<Scalar = <V as Vertex>::Scalar>,

source§

impl<V, N> Vertex2d for WithNormal<V, N>
where V: Vertex2d, WithNormal<V, N>: Vertex<Scalar = <V as Vertex>::Scalar>,

source§

impl<V, T> Vertex2d for WithTexCoords<V, T>
where V: Vertex2d, WithTexCoords<V, T>: Vertex<Scalar = <V as Vertex>::Scalar>,