Class: Map::MercatorProjection::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/contrek/map/mercator_projection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xObject

Returns the value of attribute x.



14
15
16
# File 'lib/contrek/map/mercator_projection.rb', line 14

def x
  @x
end

#yObject

Returns the value of attribute y.



14
15
16
# File 'lib/contrek/map/mercator_projection.rb', line 14

def y
  @y
end