Sha256: cdef393e6fe069438ac0f4cb3f68faa7d1fa29287e1beec9543851661baeb01d
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true require "geometry" module ChemScanner # Monkey patch Point class from ruby-geometry module Extension refine Geometry::Point do def euclid_distance_to_polygon(polygon) polygon.euclid_distance_to_point(self) end def distance_to(other) Geometry.distance(self, other) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chem_scanner-0.1.3 | lib/chem_scanner/extension/geometry/point.rb |