1 2 3 4 5 6 7 8 9 10 11 12
pub use crate::cgmath_extend_traits::*;
pub use cgmath::prelude::*;
pub use cgmath::{frustum, ortho, perspective, Deg, Rad};
pub use matext4cgmath::*;
macro_rules! f64_type {
($typename: ident) => {
/// redefinition, scalar = f64
pub type $typename = cgmath::$typename<f64>;
};
($a: ident, $($b: ident), *) => { f64_type!($a); f64_type!($($b),*); }
}
f64_type!(Vector1, Vector2, Vector3, Vector4, Matrix2, Matrix3, Matrix4, Point1, Point2, Point3);