module Indexable::Rad

Public Instance Methods

rad() click to toggle source

Calculate the xy angle in radians.

# File lib/sixarm_ruby_geometry/indexable/rad.rb, line 9
def rad
  Math::atan2(self[1],self[0])
end