class_vector3i.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Vector3i.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Vector3i:
  6. Vector3i
  7. ========
  8. Vector used for 3D math using integer coordinates.
  9. Description
  10. -----------
  11. 3-element structure that can be used to represent positions in 3D space or any other pair of numeric values.
  12. It uses integer coordinates.
  13. Tutorials
  14. ---------
  15. - :doc:`../tutorials/math/index`
  16. Methods
  17. -------
  18. +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  19. | :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 **)** |
  20. +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Vector3i<class_Vector3i>` | :ref:`Vector3i<class_Vector3i_method_Vector3i>` **(** :ref:`Vector3<class_Vector3>` from **)** |
  22. +---------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  23. Constants
  24. ---------
  25. .. _class_Vector3i_constant_AXIS_X:
  26. .. _class_Vector3i_constant_AXIS_Y:
  27. .. _class_Vector3i_constant_AXIS_Z:
  28. .. _class_Vector3i_constant_ZERO:
  29. .. _class_Vector3i_constant_ONE:
  30. .. _class_Vector3i_constant_LEFT:
  31. .. _class_Vector3i_constant_RIGHT:
  32. .. _class_Vector3i_constant_UP:
  33. .. _class_Vector3i_constant_DOWN:
  34. .. _class_Vector3i_constant_FORWARD:
  35. .. _class_Vector3i_constant_BACK:
  36. - **AXIS_X** = **0** --- Enumerated value for the X axis.
  37. - **AXIS_Y** = **1** --- Enumerated value for the Y axis.
  38. - **AXIS_Z** = **2** --- Enumerated value for the Z axis.
  39. - **ZERO** = **Vector3i( 0, 0, 0 )** --- Zero vector.
  40. - **ONE** = **Vector3i( 1, 1, 1 )** --- One vector.
  41. - **LEFT** = **Vector3i( -1, 0, 0 )** --- Left unit vector.
  42. - **RIGHT** = **Vector3i( 1, 0, 0 )** --- Right unit vector.
  43. - **UP** = **Vector3i( 0, 1, 0 )** --- Up unit vector.
  44. - **DOWN** = **Vector3i( 0, -1, 0 )** --- Down unit vector.
  45. - **FORWARD** = **Vector3i( 0, 0, -1 )** --- Forward unit vector.
  46. - **BACK** = **Vector3i( 0, 0, 1 )** --- Back unit vector.
  47. Method Descriptions
  48. -------------------
  49. .. _class_Vector3i_method_Vector3i:
  50. - :ref:`Vector3i<class_Vector3i>` **Vector3i** **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y, :ref:`int<class_int>` z **)**
  51. Returns a ``Vector3i`` with the given components.
  52. ----
  53. - :ref:`Vector3i<class_Vector3i>` **Vector3i** **(** :ref:`Vector3<class_Vector3>` from **)**
  54. Constructs a new ``Vector3i`` from :ref:`Vector3<class_Vector3>`. The floating point coordinates will be truncated.