vector3.dot
The dot product of two vectors.
Usage
Vector3.dot(a: Vector3, b: Vector3): numberParameters
aVector3First vector. Required. In model.
bVector3Second vector. Required. In model.
Returns
|a| |b| cos θ (model units²): 0 for perpendicular vectors, negative when they point apart; NaN for non-finite input.
Example
Vector3.dot(Vector3.of(1, 2, 3), Vector3.of(4, 5, 6)) // → 32