Expand description
Own namespace of the module.
Structs§
- Vector
- A vector structure.
Traits§
- Collection
- A trait for collections of scalars.
- Const
Length - A trait implemented for entities with known length at compile-time.
- IterExt
- Extension trait for iterators over floating-point numbers.
- Iter
Float - Extension trait for iterators over floating-point numbers.
- Vector
Iter - Trait to get iterator over elements of a vector. Should be implemented even for scalars.
- Vector
Iter Mut - Trait to get iterator over elements of a vector.
- Vector
Iterator - Trait that encapsulates an vector elements iterator with specific characteristics and implemetning
CloneDyn. - Vector
Iterator Ref - Trait that encapsulates an vector elements iterator with specific characteristics and implemetning
CloneDyn. - Vector
Mut - A trait for accessing a mutable reference to a fixed-size array from a collection.
- Vector
Ref - A trait for accessing a reference to a fixed-size array from a collection.
- Vector
Space - Vector
Space Mut - Vector
With Length - A trait indicate that entity in case of referencing it can be interpreted as such having specified length
LEN. - Vector
With Length Mut - A trait indicate that entity in case of mutable referencing it can be interpreted as such having specified length
LEN.
Functions§
- angle
- Computes the angle between two vectors.
- cross
- cross_
mut - div_
scalar - div_
scalar_ mut - dot
- Computes the dot product of two vectors.
- is_
orthogonal - Returns
trueif the vectorais perpendicular (orthogonal) to vectorb. - mag
- Computes the magnitude of a vector.
- mag2
- Computes the squared magnitude of a vector.
- max
- max_mut
- min
- min_mut
- mul
- mul_mut
- mul_
scalar - mul_
scalar_ mut - normalize
- Normalizes a vector to unit length.
- normalize_
to - Normalizes a vector to a specified magnitude.
- normalized
- Normalizes a vector to unit length.
- normalized_
to - Normalizes a vector to a specified magnitude.
- project_
on - Projects vector
aonto vectorb. - projected_
on - Projects vector
aonto vectorb. - sub
- sub_mut
- sub_
scalar - sub_
scalar_ mut - sum
- sum_mut
- sum_
scalar - sum_
scalar_ mut