github_url: | hide |
---|
Vector used for 3D math using integer coordinates.
3-element structure that can be used to represent positions in 3D space or any other pair of numeric values.
It uses integer coordinates.
- AXIS_X = 0 --- Enumerated value for the X axis.
- AXIS_Y = 1 --- Enumerated value for the Y axis.
- AXIS_Z = 2 --- Enumerated value for the Z axis.
- ZERO = Vector3i( 0, 0, 0 ) --- Zero vector.
- ONE = Vector3i( 1, 1, 1 ) --- One vector.
- LEFT = Vector3i( -1, 0, 0 ) --- Left unit vector.
- RIGHT = Vector3i( 1, 0, 0 ) --- Right unit vector.
- UP = Vector3i( 0, 1, 0 ) --- Up unit vector.
- DOWN = Vector3i( 0, -1, 0 ) --- Down unit vector.
- FORWARD = Vector3i( 0, 0, -1 ) --- Forward unit vector.
- BACK = Vector3i( 0, 0, 1 ) --- Back unit vector.
- :ref:`Vector3i<class_Vector3i>` Vector3i ( :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z )
Returns a Vector3i
with the given components.
- :ref:`Vector3i<class_Vector3i>` Vector3i ( :ref:`Vector3<class_Vector3>` from )
Constructs a new Vector3i
from :ref:`Vector3<class_Vector3>`. The floating point coordinates will be truncated.