Vector3 is a type and a namespace.

// The namespace contains all types and functions to operates with Vector3
const next = Vector3.add(pointA, velocityA)
// The type Vector3 is an alias to Vector3.ReadonlyVector3
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

Index

Functions

Type Aliases