ndarray_cg 0.4.0

High-performance computer graphics mathematics library based on ndarray with vectors, matrices, and transformations
Documentation
//! Ndarray extensions for computer graphics mathematics.
#![ doc( html_root_url = "https://docs.rs/ndarray_cg/latest/ndarray_cg/" ) ]
#![ cfg_attr( doc, doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "readme.md" ) ) ) ]
#![ cfg_attr( not( doc ), doc = "Ndarray extensions for computer graphics mathematics" ) ]

#![allow(clippy::implicit_return)]
#![allow(clippy::missing_inline_in_public_items)]
#![allow(clippy::default_numeric_fallback)]
#![allow(clippy::many_single_char_names)]
#![allow(clippy::similar_names)]
#![allow(clippy::same_name_method)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::blanket_clippy_restriction_lints)]
#![allow(clippy::needless_return)]
#![allow(clippy::transmute_ptr_to_ptr)]
#![allow(clippy::elidable_lifetime_names)]
#![allow(clippy::if_then_some_else_none)]
#![allow(clippy::borrow_as_ptr)]
#![allow(clippy::wildcard_imports)]
#![allow(clippy::explicit_deref_methods)]
#![allow(clippy::return_self_not_must_use)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::single_char_lifetime_names)]
#![allow(clippy::should_implement_trait)]

use ::mod_interface::mod_interface;

mod private
{
  // use super::*;
}

crate::mod_interface!
{

  /// Approximate equality for floating-point types can be determined using either relative difference
  /// or comparisons based on units in the last place (ULPs).
  layer approx;
  // own use super::approx;

  /// Derives.
  layer derive;
  // own use super::derive;
  // zzz : change to remove need to write explicitly that

  /// 2D entities, like matrix and vector.
  /// Not the same as 2D in CG
  layer d2;
  // own use super::d2;

  /// General math traits.
  layer general;

  /// Multidimensional space.
  layer md;
  // own use super::md;

  /// Multidimensional indices.
  layer index;
  // own use super::index;

  /// Memort-related things.
  layer mem;
  // own use super::mem;

  /// Ndarray things.
  layer nd;
  // own use super::nd;

  /// Vector things.
  layer vector;
  // own use super::vector;

  layer quaternion;

  prelude use ::ndarray::prelude::*;

}