1
Vector3
4n0n edited this page 3 years ago
Bastion provides a very polished and inclusive Vector3 class which is utilized in various places such as the Unit's position functions and Distance functions.
function Vector3:__tostring()
function Vector3:__add(other)
function Vector3:__sub(other)
function Vector3:__mul(other)
function Vector3:__div(other)
function Vector3:__eq(other)
function Vector3:__lt(other)
function Vector3:__le(other)
function Vector3:__unm()
function Vector3:__len()
function Vector3:__index(k)
function Vector3:__newindex(k, v)
function Vector3:New(x, y, z)
function Vector3:Dot(rhs)
function Vector3:Cross(rhs)
function Vector3:Distance(b)
function Vector3:Angle(to)
function Vector3:ClampMagnitude(maxLength)
function Vector3:Lerp(b, t)
function Vector3:MoveTowards(target, maxDistanceDelta)
function Vector3:Scale(b)
function Vector3:Project(onNormal)
function Vector3:ProjectOnPlane(planeNormal)
function Vector3:Reflect(inNormal)
function Vector3:Normalize()