Math module

dot

procedure3 overloadsSource

The same procedure as dot_product.

Example↗
assert(dot(xyz(1, 2, 3), xyz(4, 5, 6)) == 32);
dot :: (a: Vector2, b: Vector2) -> float

The dot product of a and b.

Parameters

a: Vector2
the first vector.
b: Vector2
the second vector.

Returns

float
dot :: (a: Vector3, b: Vector3) -> float

The dot product of a and b.

Parameters

a: Vector3
the first vector.
b: Vector3
the second vector.

Returns

float
dot :: (a: Vector4, b: Vector4) -> float

The dot product of a and b.

Parameters

a: Vector4
the first vector.
b: Vector4
the second vector.

Returns

float

See also