polygon-validator 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6ac244e94193b5601c5c2fba560ea43a747abd81e15db46b88adbec26365001
4
- data.tar.gz: 66f90ce4481bb7d574e340887ee1d84300c74104b0558011b18b8656a92ef957
3
+ metadata.gz: b16c4517951c68fc52803f275cfb1bdcb799c8671f30f8f4925776a101ce20f5
4
+ data.tar.gz: 821c23ba73107e01b50eab2271b08c2802bfa4f6778ccca10b0a236e76bbbaad
5
5
  SHA512:
6
- metadata.gz: 5d896f45979aa77513963a6d4fbffc02b358f6b117da3e0a832e5fa330b7164ad415d9e4b22a79a37bf4b45f85b2d1e39798addf914b105732e109d888dc13a1
7
- data.tar.gz: 60fbe222bd05bb1dae313d2fc4ffe9b93497cb9586a461428fc7b222aca502b3d33aced6b5fffdb8bdb851fd43016ed2d43dd2b2233d496b39696b3244275e42
6
+ metadata.gz: dfa4f50d1e511690ba03f7a190e771565d583fd13b68d40c8d303c38a1de3cb63e8a1939930275232b96800fc8bc367cb4e15dd7cd9e98778c8ddadf79830d80
7
+ data.tar.gz: 8b1a139de9da53916ca787b152fd7fc53a10302abd0f5d140eb774e56454bdfbb5f39027bcf99404885f944750af83f4358d7ceba8fdf073935b406223849474
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polygon-validator (1.0.0)
4
+ polygon-validator (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,14 +19,12 @@ module Polygon
19
19
  @shape = shape
20
20
  end
21
21
 
22
- # Validate if a point is inside a shape
22
+ # Validate if a point is inside the shape
23
23
  #
24
24
  # @param [Polygon::Point] point the point to validate if it is inside the
25
25
  # shape
26
- # @param [Polygon::Shape] shape the shape that may or may not contain the
27
- # point
28
26
  # @return [true, false] true if point is inside the shape
29
- def point_inside_shape?(point, shape)
27
+ def contains_point?(point)
30
28
  points = shape.points
31
29
  winding_number = 0
32
30
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Polygon
4
4
  class Validator
5
- VERSION = '1.0.1'
5
+ VERSION = '2.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygon-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Standout AB