Skip to content

Latest commit

 

History

History
96 lines (54 loc) · 2.89 KB

class_vector3i.rst

File metadata and controls

96 lines (54 loc) · 2.89 KB
github_url:hide

Vector3i

Vector used for 3D math using integer coordinates.

Description

3-element structure that can be used to represent positions in 3D space or any other pair of numeric values.

It uses integer coordinates.

Tutorials

Methods

:ref:`Vector3i<class_Vector3i>` :ref:`Vector3i<class_Vector3i_method_Vector3i>` ( :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z )
:ref:`Vector3i<class_Vector3i>` :ref:`Vector3i<class_Vector3i_method_Vector3i>` ( :ref:`Vector3<class_Vector3>` from )

Constants

  • 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.

Method Descriptions

Returns a Vector3i with the given components.


Constructs a new Vector3i from :ref:`Vector3<class_Vector3>`. The floating point coordinates will be truncated.