dot method

num dot(
  1. Vector3 v
)

Implementation

num dot(Vector3 v) {
  return x * v.x + y * v.y + z * v.z;
}