dotVectors static method

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

Get the dot product between a and b

Implementation

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