declare_vector_aliases

Macro declare_vector_aliases 

Source
macro_rules! declare_vector_aliases {
    ($vis:vis type $prefix:ident => $T:ty) => { ... };
}
Expand description

Declares vector type aliases for a custom scalar type.

ยงExample

use ggmath::declare_vector_aliases;

struct CustomScalar(f32);

declare_vector_aliases!(type C => CustomScalar);

// Generated aliases:
// type CVec2 = Vector<2, CustomScalar, Simd>;
// type CVec3 = Vector<3, CustomScalar, Simd>;
// type CVec4 = Vector<4, CustomScalar, Simd>;
// type CVec2S = Vector<2, CustomScalar, NonSimd>;
// type CVec3S = Vector<3, CustomScalar, NonSimd>;
// type CVec4S = Vector<4, CustomScalar, NonSimd>;