isPointInRing(vec) {
    for (var i = 0; i < this.rings.length; i++) {
      let ring = this.rings[i];

      if (!ring.positioned) {
        continue;
      }

      let radius = MathHelper.polyCircumradius(this.opts.bondLength, ring.getSize());
      let radiusSq = radius * radius;

      if (vec.distanceSq(ring.center) < radiusSq) {
        return true;
      }
    }

    return false;
  }
Check if a vector is inside any ring.

@param {Vector2} vec A vector.
@returns {Boolean} A boolean indicating whether or not the point (vector) is inside any of the rings associated with the current molecule.