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.
15 16 17 18 |
# File 'lib/contrek/map/mercator_projection.rb', line 15 def initialize(x: 0, y: 0) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
14 15 16 |
# File 'lib/contrek/map/mercator_projection.rb', line 14 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
14 15 16 |
# File 'lib/contrek/map/mercator_projection.rb', line 14 def y @y end |