Skip to main content

Vector3.Vector3(int, float, float)

Creates a vector from mixed numeric types.

Method Signature

Vector3(int x, float y, float z)

Description

Convenience overload for mixed-source values.

Parameters

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

Returns

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

Mutability

  • New instance creation only.

Edge Cases

  • Integer x is converted to float.

Usage Example

Vector3 pathNode = new Vector3(4, 0.5f, -2.75f);

Mathematical Example

(4, 0.5, -2.75).

Visualization