Representation of 3D vectors and points using integers.
This structure is used in some places to represent 3D positions and vectors that don't require the precision of floating-point.
down | Shorthand for writing Vector3Int (0, -1, 0). |
left | Shorthand for writing Vector3Int (-1, 0, 0). |
one | Shorthand for writing Vector3Int (1, 1, 1). |
right | Shorthand for writing Vector3Int (1, 0, 0). |
up | Shorthand for writing Vector3Int (0, 1, 0). |
zero | Shorthand for writing Vector3Int (0, 0, 0). |
magnitude | Retorna la longitud de este vector (Read Only). |
sqrMagnitude | Retorna la longitud cuadrada de este vector (Read Only). |
this[int] | Access the x, y or z component using [0], [1] or [2] respectively. |
x | Componente X del vector. |
y | Componente Y del vector. |
z | Componente Z del vector. |
Clamp | Clamps the Vector3Int to the bounds given by min and max. |
Equals | Returns true if the objects are equal. |
GetHashCode | Gets the hash code for the Vector3Int. |
Set | Set x, y and z components of an existing Vector3Int. |
ToString | Retorna un string bien formateado para este vector. |
CeilToInt | Converts a Vector3 to a Vector3Int by doing a Ceiling to each value. |
Distance | Devuelve la distancia entre a y b. |
FloorToInt | Converts a Vector3 to a Vector3Int by doing a Floor to each value. |
Max | Retorna un vector que está hecho de los componentes más grandes de dos vectores. |
Min | Retorna un vector que está hecho de los componentes más pequeños de dos vectores. |
RoundToInt | Converts a Vector3 to a Vector3Int by doing a Round to each value. |
Scale | Multiplica dos vectores en función de los componentes. |
operator - | Resta un vector a otro. |
operator != | Devuelve verdadero si los vectores son diferentes. |
operator * | Multiplica un vector por un número. |
operator + | Suma dos vectores. |
operator == | Devuelve true si dos vectores son iguales. |
Vector3 | Converts a Vector3Int to a Vector3. |