Collection of math adapters to decouple your application from math libraries' implementations and to provide both inter-libraries compatibility and affordable exchangeability.
//!//! Implement adapters for `cgmath`.
//!/// Internal namespace.
pub(crate)modprivate{/// X2 Vector of cgmath
pubtypeX2< Scalar >=cgmath::Vector2< Scalar >;}crate::mod_interface!{// #![ debug ]
/// Trait to interpret math data structures of other math libs as their analogs in cgmath to use operations of cgmath.
layer as_foreign;#[cfg( cgmath_ops )]/// Use cgmath's operations.
layer ops;/// Implement interfaces for objects of the math library.
layer x2;
protected useX2;
protected use::cgmath::*;
prelude use::cgmath::Array;// #[ cfg( cgmath_ops ) ]
// exposed use X2;
}