(en)Return dot product.
(ja)ドット積を返します。
static double dot(Sp3dV3D a, Sp3dV3D b) { return a.x * b.x + a.y * b.y + a.z * b.z; }