angleBetween method

double angleBetween(
  1. Vector3 vec
)

Implementation

double angleBetween(Vector3 vec) {
  var dotProduct = dot(vec);
  var cosAngle = dotProduct / (vec.norm() * norm());
  return acos(cosAngle);
}