qangle
Variables
Functions
IsZero
local angZero = QAngle.new(0.0, 0.0, 0.0)
local bIsZero = angZero.IsZero()Clamp
Normalize
Last updated
Was this helpful?
local angZero = QAngle.new(0.0, 0.0, 0.0)
local bIsZero = angZero.IsZero()Last updated
Was this helpful?
Was this helpful?
local angUntrusted = QAngle.new(180.0, 720.0, 100.0)
angUntrusted.Clamp() -- after this call angle will be QAngle(89.0, 180.0, 0.0)
-- but also able to assign clamped angle to new angle
local angClamped = angUntrusted.Clamp()local angUntrusted = QAngle.new(180.0, 720.0, 100.0)
angUntrusted.Normalize() -- after this call angle will be QAngle(-90.0, 180.0, 0.0)
-- but also able to assign normalized angle to new angle
local angNormalized = angUntrusted.Normalize()