Class: RGeo::CoordSys::CS::AngularUnit
- Defined in:
- lib/rgeo/coord_sys/cs/entities.rb
Overview
OGC spec description
Definition of angular units.
Instance Attribute Summary
Attributes inherited from Unit
Attributes inherited from Info
#abbreviation, #alias, #authority, #authority_code, #name, #remarks
Class Method Summary collapse
-
.create(name, radians_per_unit, *optional) ⇒ Object
Create an AngularUnit given a unit name and a conversion factor in radians per unit.
Instance Method Summary collapse
-
#radians_per_unit ⇒ Object
Returns the number of radians per AngularUnit.
Methods inherited from Unit
Methods inherited from Info
Methods inherited from Base
#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt
Constructor Details
This class inherits a constructor from RGeo::CoordSys::CS::Unit
Class Method Details
.create(name, radians_per_unit, *optional) ⇒ Object
Create an AngularUnit given a unit name and a conversion factor in radians per unit. You may also provide the optional parameters specified by the Info interface.
563 564 565 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 563 def create(name, radians_per_unit, *optional) new(name, radians_per_unit, *optional) end |
Instance Method Details
#radians_per_unit ⇒ Object
Returns the number of radians per AngularUnit. Also available as Unit#conversion_factor.
554 555 556 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 554 def radians_per_unit @conversion_factor end |