Skip to content

dos_dotproduct

Dale Fugier edited this page Nov 1, 2023 · 1 revision

Calculates the dot product of two 2D or two 3D vectors.

Syntax

(dos_dotproduct vector1 vector2)

Parameters

vector1

The first vector.

vector2

The second vector.

Returns

The dot product, if successful.

nil on error.

Example

Command: (dos_dotproduct '(1 0) '(0.70710 0.70710))
0.7071
Command: (dos_dotproduct '(1 0 0) '(0 0 1))
0
Clone this wiki locally