Class: Numeric
- Includes:
- Eymiha::ThreeDimensions
- Defined in:
- lib/eymiha/math3/math3.rb
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).
Methods included from Eymiha::ThreeDimensions
#half_pi, #origin, #pi, #point3, #point3c, #point3s, #quaternion, #sqrt2, #sqrt3, #two_pi
Instance Method Details
#rectify_phi ⇒ Object
Returns the instance’s value cut to lie between [0, pi].
96 97 98 |
# File 'lib/eymiha/math3/math3.rb', line 96 def rectify_phi cut_rectify pi end |
#rectify_theta ⇒ Object
Returns the instance’s value folded to lie between [0, 2*pi).
91 92 93 |
# File 'lib/eymiha/math3/math3.rb', line 91 def rectify_theta wrap_rectify two_pi end |