Crate ndvec

Source
Expand description

§ndvec

Simple low-dimensional vectors.

Supports numerical operators, even with references.

This crate intentionally does not support operators for element-wise product and so on.

§Feature Flags

  • serde: activates serialization of Vec2D, Vec3D etc.
  • serde_arrays: needed to serialize/deserialize VecND

Structs§

Vec1D
1-dimensional vector.
Vec2D
2-dimensional vector.
Vec3D
3-dimensional vector.
VecND
General-fixed-size low-dimensional vector.

Traits§

Component
Generic trait for floating point numbers as components of vectors.
RefComponent
Means supports mathematical operators.
Vector
Fixed-size vector.
VectorAssignOps
Assigning operators for vectors.
VectorOps
Basic operators for vectors.
VectorRefAssignOps
Assigning operators for vectors with references.
VectorRefOps
Basic operators with vectors and their references.

Type Aliases§

V1D32
1-dimensional vector with 32bit component
V1D64
1-dimensional vector with 64bit component
V2D32
2-dimensional vector with 32bit component
V2D64
2-dimensional vector with 64bit component
V3D32
3-dimensional vector with 32bit component
V3D64
3-dimensional vector with 64bit component