class Vector
Public Instance Methods
angle(other)
click to toggle source
# File lib/core/util.rb, line 23 def angle(other) return Math.acos(self.inner_product other / (self.r * other.r)) end
unit()
click to toggle source
# File lib/core/util.rb, line 19 def unit return self / self.r end