Trait Vertex2d
Other items innannou::prelude::geom
pub trait Vertex2d: Vertex { fn point2(self) -> [Self::Scalar; 2]; }
Vertex types that have at least 2 dimensions.
fn point2(self) -> [Self::Scalar; 2]
The x, y location of the vertex.
impl<S> Vertex2d for [S; 2] where S: Scalar,
pub fn point2(self) -> [<[S; 2] as Vertex>::Scalar; 2]
impl<S> Vertex2d for (S, S) where S: Scalar,
pub fn point2(self) -> [<(S, S) as Vertex>::Scalar; 2]
impl<S> Vertex2d for [S; 3] where S: Scalar,
pub fn point2(self) -> [<[S; 3] as Vertex>::Scalar; 2]
impl<S> Vertex2d for (S, S, S) where S: Scalar,
pub fn point2(self) -> [<(S, S, S) as Vertex>::Scalar; 2]
impl Vertex2d for DVec2
impl Vertex2d for DVec3
impl Vertex2d for IVec2
impl Vertex2d for IVec3
impl Vertex2d for Vec2
impl Vertex2d for Vec3
impl<V, C> Vertex2d for WithColor<V, C> where V: Vertex2d, Self: Vertex<Scalar = V::Scalar>,
impl<V, N> Vertex2d for WithNormal<V, N> where V: Vertex2d, Self: Vertex<Scalar = V::Scalar>,
impl<V, T> Vertex2d for WithTexCoords<V, T> where V: Vertex2d, Self: Vertex<Scalar = V::Scalar>,