GE Lua Documentation

Press F to search!

constainsCylinder_Point

Definition


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

function constainsCylinder_Point(cposa, cposb, cR, p)
  local xnorm, r2 = p:xnormSquaredDistanceToLineSegment(cposa, cposb)
  return xnorm >= 0 and xnorm <= 1 and r2 <= cR*cR
end

Callers