R/angle.between.R

angle.between = function(a, b) {
  # Returns the angle between the 3d vectors a and b
  return (acos(dot(norm(a), norm(b))))
}

Try the eggs package in your browser

Any scripts or data that you put into this service are public.

eggs documentation built on May 2, 2019, 5:23 p.m.