ndarray_cg 0.4.0

High-performance computer graphics mathematics library based on ndarray with vectors, matrices, and transformations
Documentation
/// Internal namespace.
mod private
{
  use crate::*;

  /// Trait for representing and manipulating rotations in 2D.
  pub trait Rotation2
  where
    Self : Rotation< 2 >,
  {

    /// Creates a new instance of the type from the given rotation angle.
    fn from_angle< Dir, Up >( angle : < Self as Collection >::Scalar ) -> Self;

  }

}

crate::mod_interface!
{
  own use
  {
    Rotation2
  };

}