# [−][src]Crate na

## Modules

base | [Reexported at the root of this crate.] Data structures for vector and matrix computations. |

geometry | [Reexported at the root of this crate.] Data structures for points and usual transformations (rotations, isometries, etc.) |

linalg | [Reexported at the root of this crate.] Factorization of real matrices. |

traits |

## Macros

pnt2 | |

pnt3 | |

pnt4 | |

vec2 | |

vec3 | |

vec4 |

## Structs

Additive | The addition operator, commonly symbolized by |

Complex | A complex number in Cartesian form. |

Id | The universal identity element wrt. a given operator, usually noted |

Multiplicative | The multiplication operator, commonly symbolized by |

## Traits

AsMat | |

AsPnt | |

AsVec | |

BaseInt | |

BaseNum | |

ComplexField | Trait shared by all complex fields and its subfields (like real numbers). |

FastDot | |

FastInverse | |

FastMul | |

FloatPnt | Trait of vector with components implementing the |

FloatVec | Trait of vector with components implementing the |

Identity | A type that is equipped with identity. |

NumPnt | Trait grouping most common operations on vectors. |

NumVec | Trait grouping most common operations on vectors. |

Real | Deprecated The field of reals. This has been renamed to |

RealField | Trait shared by all reals. |

Storage | The trait shared by all matrix data storage. |

StorageMut | Trait implemented by matrix data storage that can provide a mutable access to its elements. |

Swizzles2 | |

Swizzles2Mut | |

Swizzles3 | |

Swizzles3Mut | |

Swizzles4 | |

Swizzles4Mut | |

ToMat | |

ToPnt | |

ToVec |

## Functions

abs | Deprecated The absolute value of |

angle | Deprecated Computes the smallest angle between two vectors. |

center | The center of two points. |

clamp | Returns a reference to the input value clamped to the interval |

convert | Converts an object from one type to an equivalent or more general one. |

convert_ref | Converts an object from one type to an equivalent or more general one. |

convert_ref_unchecked^{⚠} | Use with care! Same as |

convert_unchecked^{⚠} | Use with care! Same as |

dimension | The dimension of the given algebraic entity seen as a vector space. |

distance | The distance between two points. |

distance_squared | The squared distance between two points. |

dot | Deprecated Computes the dot product of two vectors. |

id | Deprecated Gets the ubiquitous multiplicative identity element. |

inf | Returns the infimum of |

inf_sup | Returns simultaneously the infimum and supremum of |

inverse | Deprecated Computes the multiplicative inverse of an (always invertible) algebraic entity. |

is_convertible | Indicates if |

magnitude | Deprecated A synonym for |

magnitude_squared | Deprecated A synonym for |

max | Same as |

min | Same as |

norm | Deprecated Computes the L2 (Euclidean) norm of a vector. |

norm_squared | Deprecated Computes the squared L2 (Euclidean) norm of the vector |

normalize | Deprecated Computes the normalized version of the vector |

one | Gets the multiplicative identity element. |

origin | Deprecated Gets the origin of the given point. |

partial_clamp | Clamp |

partial_cmp | Compare |

partial_ge | Returns |

partial_gt | Returns |

partial_le | Returns |

partial_lt | Returns |

partial_max | Return the maximum of |

partial_min | Return the minimum of |

partial_sort2 | Sorts two values in increasing order using a partial ordering. |

pnt2 | |

pnt3 | |

pnt4 | |

pnt5 | |

pnt6 | |

sup | Returns the supremum of |

try_convert | Attempts to convert an object to a more specific one. |

try_convert_ref | Attempts to convert an object to a more specific one. |

try_inverse | Deprecated Tries to gets an inverted copy of a square matrix. |

try_normalize | Deprecated Computes the normalized version of the vector |

vec2 | |

vec3 | |

vec4 | |

vec5 | |

vec6 | |

wrap | Wraps |

zero | Gets the additive identity element. |

## Type Definitions

Isometry2 | |

Isometry3 | |

Mat1 | |

Mat2 | |

Mat3 | |

Mat4 | |

Mat5 | |

Mat6 | |

Pnt1 | |

Pnt2 | |

Pnt3 | |

Pnt4 | |

Pnt5 | |

Pnt6 | |

Quat | |

Rotation2 | |

Rotation3 | |

Translation2 | |

Translation3 | |

UnitQuat | |

Vec1 | |

Vec2 | |

Vec3 | |

Vec4 | |

Vec5 | |

Vec6 | |

VecN |