Trait nannou::geom::Vertex3d

source ·
pub trait Vertex3d: Vertex2d {
    // Required method
    fn point3(self) -> [Self::Scalar; 3];
}
Expand description

Vertex types that have at least 3 dimensions.

Required Methods§

source

fn point3(self) -> [Self::Scalar; 3]

The x, y, z location of the vertex.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl Vertex3d for DVec3

source§

impl Vertex3d for IVec3

source§

impl Vertex3d for Vec3

source§

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

source§

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

source§

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