dot method

double dot(
  1. Vec3 vector
)

Calculate dot product @param vector

Implementation

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