ndarray_cg/
lib.rs

1//! Ndarray extensions for computer graphics mathematics.
2#![ doc( html_root_url = "https://docs.rs/ndarray_cg/latest/ndarray_cg/" ) ]
3#![ cfg_attr( doc, doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "readme.md" ) ) ) ]
4#![ cfg_attr( not( doc ), doc = "Ndarray extensions for computer graphics mathematics" ) ]
5
6#![allow(clippy::implicit_return)]
7#![allow(clippy::missing_inline_in_public_items)]
8#![allow(clippy::default_numeric_fallback)]
9#![allow(clippy::many_single_char_names)]
10#![allow(clippy::similar_names)]
11#![allow(clippy::same_name_method)]
12#![allow(clippy::module_name_repetitions)]
13#![allow(clippy::blanket_clippy_restriction_lints)]
14#![allow(clippy::needless_return)]
15#![allow(clippy::transmute_ptr_to_ptr)]
16#![allow(clippy::elidable_lifetime_names)]
17#![allow(clippy::if_then_some_else_none)]
18#![allow(clippy::borrow_as_ptr)]
19#![allow(clippy::wildcard_imports)]
20#![allow(clippy::explicit_deref_methods)]
21#![allow(clippy::return_self_not_must_use)]
22#![allow(clippy::missing_panics_doc)]
23#![allow(clippy::single_char_lifetime_names)]
24#![allow(clippy::should_implement_trait)]
25
26use ::mod_interface::mod_interface;
27
28mod private
29{
30  // use super::*;
31}
32
33crate::mod_interface!
34{
35
36  /// Approximate equality for floating-point types can be determined using either relative difference
37  /// or comparisons based on units in the last place (ULPs).
38  layer approx;
39  // own use super::approx;
40
41  /// Derives.
42  layer derive;
43  // own use super::derive;
44  // zzz : change to remove need to write explicitly that
45
46  /// 2D entities, like matrix and vector.
47  /// Not the same as 2D in CG
48  layer d2;
49  // own use super::d2;
50
51  /// General math traits.
52  layer general;
53
54  /// Multidimensional space.
55  layer md;
56  // own use super::md;
57
58  /// Multidimensional indices.
59  layer index;
60  // own use super::index;
61
62  /// Memort-related things.
63  layer mem;
64  // own use super::mem;
65
66  /// Ndarray things.
67  layer nd;
68  // own use super::nd;
69
70  /// Vector things.
71  layer vector;
72  // own use super::vector;
73
74  layer quaternion;
75
76  prelude use ::ndarray::prelude::*;
77
78}