VE Lua Documentation

Press F to search!

isnaninf

Definition


-- @/lua/common/mathlib.lua:1176

function isnaninf(a)
  return a * 0 ~= 0
end

Callers

@/lua/vehicle/wheels.lua
  avgAV = avgAV * invSpeedoWheelCount
  avgAV = isnaninf(avgAV) and 0 or avgAV
  evals.avgWheelAV = avgAV
  avgWheelSpeed = abs(avgWheelSpeed) * invSpeedoWheelCount
  avgWheelSpeed = isnaninf(avgWheelSpeed) and 0 or avgWheelSpeed
  evals.wheelspeed = avgWheelSpeed
@/lua/vehicle/bdebugImpl.lua
  local hash = bit.bxor(bit.bxor((x + (offX or 0)) * 73856093, (y + (offY or 0)) * 19349663), (z + (offZ or 0)) * 83492791)
  return not isnaninf(hash) and hash or 0
end
@/lua/vehicle/controller/drivingDynamics/sensors/vehicleData.lua
local function guardInfNaN(number)
  return isnaninf(number) and 0 or number
end
@/lua/ge/extensions/core/camera.lua
local function validateData(data)
  local valid = not(isnaninf(data.res.fov + data.res.pos:squaredLength()) or isnaninf(data.res.rot:squaredNorm()))
  if valid then
local function validateData(data)
  local valid = not(isnaninf(data.res.fov + data.res.pos:squaredLength()) or isnaninf(data.res.rot:squaredNorm()))
  if valid then