Go to: Synopsis. Return value.

Synopsis

float dotProduct( float $v1[], float $v2[], int $normalizeInputs )

Returns the dot product of two 3D float arrays. If $normalizeInputs is set then the vectors are normalized before the dot product is calculated.

Return value

None

Arguments

Variable Name Variable type Description
$v1float[]First vector
$v2float[]Second vector
$normalizeInputsint1 means normalize $v1, $v2 before calculation