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
#_wkt_content, #_wkt_typename, #initialize
Methods inherited from Info
Methods inherited from Base
#_to_wkt, #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.
552 553 554 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 552 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.
543 544 545 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 543 def radians_per_unit @conversion_factor end |