vector2aux
Provides functions for creating and manipulating 2D vectors.
Module Contents
Classes
Index class for the Vector2. |
|
Unit class for the Vector2. |
Functions
|
Create a Vector2 object. |
|
Create a x unit Vector2. |
|
Create a y unit Vector2. |
|
Create a Vector2 from a 3x3 Matrix. |
- create(x: float = 0.0, y: float = 0.0, dtype: Any = None) numpy.ndarray
Create a Vector2 object.
# noqa: DAR401
- Parameters:
x – x size.
y – y size.
dtype – data-type.
- Returns:
The Vector.
- create_unit_length_x(dtype: Any = None) numpy.ndarray
Create a x unit Vector2.
- Parameters:
dtype – data-type.
- Returns:
The Vector.
- create_unit_length_y(dtype: Any = None) numpy.ndarray
Create a y unit Vector2.
- Parameters:
dtype – data-type.
- Returns:
The Vector.
- create_from_matrix33_translation(mat: Any, dtype: Any = None) numpy.ndarray
Create a Vector2 from a 3x3 Matrix.
- Parameters:
mat – The 3x3 Matrix.
dtype – The data-type.
- Returns:
The Vector2.