dotProductIndexIndexXYAndZ Method

Return the dot product of the vectors from the point at origin to the point at indexA and to targetB.

dotProductIndexIndexXYAndZ(origin: number, indexA: number, targetB: XYAndZ): number | undefined

@returns undefined if index is out of bounds.

Parameter Type Description
origin number index of point within the array; origin of both vectors.
indexA number index of point within the array; target of the first vector.
targetB XYAndZ target for second vector.

Returns - number | undefined

undefined if index is out of bounds.

Defined in

Last Updated: 28 April, 2026