Vector3 is a type and a namespace.

  • The namespace contains all types and functions to operates with Vector3
  • The type Vector3 is an alias to Vector3.ReadonlyVector3

// Namespace usage example
const next = Vector3.add(pointA, velocityA)

// Type usage example
const readonlyPosition: Vector3 = Vector3.Zero()
readonlyPosition.x = 0.1 // this FAILS

// For mutable usage, use `Vector3.Mutable`
const position: Vector3.Mutable = Vector3.One()
position.x = 3.0 // this WORKS