Pular para o conteúdo principal

Vetor3.Vector3(int, int, float)

Creates a vector from mixed numeric types.

Method Signature

Vector3(int x, int y, float z)

Descrição

Overload for integer X/Y and floating Z.

Parameters

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

Retorna

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

Mutability

  • New instance creation only.

Edge Cases

  • Integer precision converts to float representation.

Usage Example

Vector3 mixed = new Vector3(2, 3, 0.25f);

Mathematical Example

(2, 3, 0.25).

Visualization