module Indexable::Pitch
Public Instance Methods
pitch()
click to toggle source
Calculate the xy-plane angle to the z-coordinate.
# File lib/sixarm_ruby_geometry/indexable/pitch.rb, line 9 def pitch Math::atan2(self[2], Math::sqrt(self[0]**2 + self[1]**2)) end