Class: Map::MercatorProjection::Point
- Inherits:
-
Object
- Object
- Map::MercatorProjection::Point
- Defined in:
- lib/contrek/map/mercator_projection.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x: 0, y: 0) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x: 0, y: 0) ⇒ Point
Returns a new instance of Point.
17 18 19 20 |
# File 'lib/contrek/map/mercator_projection.rb', line 17 def initialize(x: 0, y: 0) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
16 17 18 |
# File 'lib/contrek/map/mercator_projection.rb', line 16 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
16 17 18 |
# File 'lib/contrek/map/mercator_projection.rb', line 16 def y @y end |