Class: OsgbConvert::Coordinate

Inherits:
Object
  • Object
show all
Includes:
Converter
Defined in:
lib/osgb_convert.rb

Direct Known Subclasses

OSGB36, WGS84

Constant Summary

Constants included from Converter

OsgbConvert::Converter::ELLIPSE, OsgbConvert::Converter::HELMERT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Converter

#convert

Constructor Details

#initialize(lat, long, height) ⇒ Coordinate

Returns a new instance of Coordinate.



88
89
90
91
92
# File 'lib/osgb_convert.rb', line 88

def initialize(lat, long, height)
  @lat = lat
  @long = long
  @height = height
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



86
87
88
# File 'lib/osgb_convert.rb', line 86

def height
  @height
end

#latObject (readonly)

Returns the value of attribute lat.



86
87
88
# File 'lib/osgb_convert.rb', line 86

def lat
  @lat
end

#longObject (readonly)

Returns the value of attribute long.



86
87
88
# File 'lib/osgb_convert.rb', line 86

def long
  @long
end