dotVectors static method

double dotVectors(
  1. Vec3 a,
  2. Vec3 b
)

Get the dot product between a and b

Implementation

static double dotVectors(Vec3 a, Vec3 b ) {
  return a.x * b.x + a.y * b.y + a.z * b.z;
}