Pular para o conteúdo principal

Vetor3.Vector3(int, int, int)

Creates a vector from explicit integer components.

Method Signature

Vector3(int x, int y, int z)

Descrição

Integer constructor for grid-aligned coordinates.

Parameters

  • x (int): X component.
  • y (int): Y component.
  • z (int): Z component.

Retorna

  • Vector3: new vector (x, y, z).

Mutability

  • New instance creation only.

Edge Cases

  • Values convert to float internally.

Usage Example

Vector3 chunk = new Vector3(2, 0, -1);

Mathematical Example

(2, 0, -1).

Visualization