pub trait FromVectorParts<T, const N: usize>where
    T: VectorScalar,{
    // Required method
    fn from_parts(parts: [T; N]) -> Self;
}
Expand description

Enables the cration of a vector (via [T; N])

Required Methods§

source

fn from_parts(parts: [T; N]) -> Self

Implementations on Foreign Types§

source§

impl FromVectorParts<i32, 4> for IVec4where IVec4: From<[i32; 4]>, i32: VectorScalar,

source§

fn from_parts(parts: [i32; 4]) -> IVec4

source§

impl FromVectorParts<u32, 2> for UVec2where UVec2: From<[u32; 2]>, u32: VectorScalar,

source§

fn from_parts(parts: [u32; 2]) -> UVec2

source§

impl FromVectorParts<u32, 3> for UVec3where UVec3: From<[u32; 3]>, u32: VectorScalar,

source§

fn from_parts(parts: [u32; 3]) -> UVec3

source§

impl FromVectorParts<f32, 3> for Vec3where Vec3: From<[f32; 3]>, f32: VectorScalar,

source§

fn from_parts(parts: [f32; 3]) -> Vec3

source§

impl FromVectorParts<i32, 3> for IVec3where IVec3: From<[i32; 3]>, i32: VectorScalar,

source§

fn from_parts(parts: [i32; 3]) -> IVec3

source§

impl FromVectorParts<f32, 2> for Vec2where Vec2: From<[f32; 2]>, f32: VectorScalar,

source§

fn from_parts(parts: [f32; 2]) -> Vec2

source§

impl FromVectorParts<i32, 2> for IVec2where IVec2: From<[i32; 2]>, i32: VectorScalar,

source§

fn from_parts(parts: [i32; 2]) -> IVec2

source§

impl FromVectorParts<u32, 4> for UVec4where UVec4: From<[u32; 4]>, u32: VectorScalar,

source§

fn from_parts(parts: [u32; 4]) -> UVec4

source§

impl FromVectorParts<f32, 4> for Vec4where Vec4: From<[f32; 4]>, f32: VectorScalar,

source§

fn from_parts(parts: [f32; 4]) -> Vec4

Implementors§