Function: dot

Syntax

dot (<point1>, <point2>)

Type

numeric

Returns

The dot product of two 3-D vectors.

Parameters

The answer is computed as (u1*v1+u2*v2+u3*v3).

Examples

Compute the dot product of 2 direction cosines

point u = (1,0,0),v = (0,1,0)
numeric dp = dot(u,v)

In this case, the answer will be 0.