Class: Numeric

Inherits:
Object show all
Defined in:
lib/eymiha_math3.rb

Instance Method Summary collapse

Instance Method Details

#rectify_phiObject

Returns the instance’s value cut to lie between [0, pi].



94
95
96
# File 'lib/eymiha_math3.rb', line 94

def rectify_phi
  cut_rectify pi
end

#rectify_thetaObject

Returns the instance’s value folded to lie between [0, 2*pi).



89
90
91
# File 'lib/eymiha_math3.rb', line 89

def rectify_theta
  wrap_rectify two_pi
end