Class: CloudMade::BBox
Instance Attribute Summary collapse
-
#points ⇒ Object
Returns the value of attribute points.
Class Method Summary collapse
Instance Method Summary collapse
- #==(bbox) ⇒ Object
-
#initialize(points) ⇒ BBox
constructor
A new instance of BBox.
Methods inherited from Geometry
Constructor Details
#initialize(points) ⇒ BBox
Returns a new instance of BBox.
118 119 120 |
# File 'lib/cloudmade/geometry.rb', line 118 def initialize(points) self.points = points end |
Instance Attribute Details
#points ⇒ Object
Returns the value of attribute points.
116 117 118 |
# File 'lib/cloudmade/geometry.rb', line 116 def points @points end |
Class Method Details
Instance Method Details
#==(bbox) ⇒ Object
134 135 136 137 |
# File 'lib/cloudmade/geometry.rb', line 134 def ==(bbox) return (bbox.points[0] == self.points[0] and bbox.points[1] = self.points[1] or bbox.points[0] == self.points[1] and bbox.points[1] = self.points[0]) end |