struct S2Cells::Angle
 
  - S2Cells::Angle
 - Struct
 - Value
 - Object
 
Included Modules
- Comparable(S2Cells::Angle)
 
Defined in:
s2_cells/angle.crConstructors
- 
        .from_degrees(degrees : Float64) : Angle
        
          
Creates an Angle from a degree measurement.
 - 
        .from_radians(radians : Float64) : Angle
        
          
Creates an Angle from a radians measurement.
 - 
        .new(radians : Float64 = 0)
        
          
Initializes a new Angle with a given radians value.
 
Instance Method Summary
- 
        #+(other : Angle) : Angle
        
          
Adds two Angles together.
 - 
        #<=>(other : Angle)
        
          
Compares this Angle to another Angle to determine if it is less than the other.
 - 
        #==(other : Angle)
        
          
Checks equality of the Angle with another object.
 - 
        #degrees : Float64
        
          
Converts the Angle's radians to degrees.
 - 
        #hash : UInt64
        
          
Generates an
UInt64hash value for this object. - 
        #radians : Float64
        
          
Gets the radians value of the Angle.
 - 
        #to_s : String
        
          
Represents the Angle as a string.
 
Constructor Detail
Creates an Angle from a degree measurement.
Creates an Angle from a radians measurement.
Instance Method Detail
Compares this Angle to another Angle to determine if it is less than the other.
Generates an UInt64 hash value for this object.
This method must have the property that a == b implies a.hash == b.hash.
The hash value is used along with #== by the Hash class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher),
though usually the macro def_hash can be used to generate this method.