Class: Numeric

Inherits:
Object show all
Includes:
Eymiha::ThreeDimensions
Defined in:
lib/eymiha/math3/math3.rb

Instance Method Summary collapse

Methods included from Eymiha::ThreeDimensions

#half_pi, #origin, #pi, #point3, #point3c, #point3s, #quaternion, #sqrt2, #sqrt3, #two_pi

Instance Method Details

#rectify_phiObject

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_thetaObject

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