class RGeo::CoordSys::CS::AngularUnit

OGC spec description

Definition of angular units.

Public Class Methods

create(name_, radians_per_unit_, *optional_) click to toggle source

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.

# File lib/rgeo/coord_sys/cs/entities.rb, line 663
def create(name_, radians_per_unit_, *optional_)
  new(name_, radians_per_unit_, *optional_)
end

Public Instance Methods

radians_per_unit() click to toggle source

Returns the number of radians per AngularUnit. Also available as RGeo::CoordSys::CS::Unit#conversion_factor.

# File lib/rgeo/coord_sys/cs/entities.rb, line 651
def radians_per_unit
  @conversion_factor
end