Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.66 KB

vectors.rst

File metadata and controls

60 lines (38 loc) · 1.66 KB

Vectors and Vector Arrays

bewegung offers vectors <vector_single> and vector arrays <vector_array>. Both of them are available in 2D and 3D variants. Both vectors and vector arrays can interact with each other as well as with matrices <matrices>.

Note

Besides simple vector algebra, a lot of bewegung's functions and methods expect geometric input using vector objects.

Vector Classes

The vector classes describe individual vectors in 2D and 3D space. Vectors are "statically typed", i.e. all components are of one single type, and use Python number types (sub-classes of numbers.Number). The data type of a vector is exposed through its dtype property.

The Vector base class

bewegung.Vector

The Vector2D class

bewegung.Vector2D

The Vector3D class

bewegung.Vector3D

Vector Array Classes

The vector array classes describe arrays of individual vectors in 2D and 3D space. Vector arrays are "statically typed" and use numpy arrays for storing data. Just like numpy.ndarray objects, they expose a dtype property.

The VectorArray base class

bewegung.VectorArray

The VectorArray2D class

bewegung.VectorArray2D

The VectorArray3D class

bewegung.VectorArray3D