dot method

double dot(
  1. Vector3 v
)

Computes the dot product of this and the given 3D vector.

Implementation

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