dot method

double dot(
  1. Vec3 v
)

Get the dot product with respect to v

Implementation

double dot (Vec3 v ) {
  return x * v.x + y * v.y + z * v.z;
}