Class: Heatmap::Geometry
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Heatmap::Geometry
- Defined in:
- lib/heatmap/geometry.rb
Class Method Summary collapse
Class Method Details
.bounds(area, point_image_width) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/heatmap/geometry.rb', line 7 def bounds(area, point_image_width) raise(ArgumentError, "Area needs to be an array of Heatmap::Area objects") if area.empty? @area = area new(width: point_image_width + max_x, height: point_image_width + max_y) end |