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

Vector3i Vector3i ( int x, int y, int z )
Vector3i Vector3i ( 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 Vector3. The floating point coordinates will be truncated.