code: public Result<ClosestPointOnPolyResult> closestPointOnPoly(long ref, float[] pos) {
          if (!m_nav.isValidPolyRef(ref) || Objects.isNull(pos) || !vIsFinite(pos)) {
              return Result.invalidParam();
          }
          return Result.success(m_nav.closestPointOnPoly(ref, pos));
      }
docs: / @returns The status flags for the query.