Class: Numeric
Instance Method Summary collapse
-
#rectify_phi ⇒ Object
Returns the instance’s value cut to lie between [0, pi].
-
#rectify_theta ⇒ Object
Returns the instance’s value folded to lie between [0, 2*pi).
Instance Method Details
#rectify_phi ⇒ Object
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_theta ⇒ Object
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 |