174 175 176 177
# File 'lib/angles.rb', line 174 def cos cos = Math.cos(self.radians).round(@@ROUND_TRIG) (cos == 0) ? 0 : cos end