dot

function

dot(_vector)

Description

Returns the dot product of this vector and the specified vector.

Arguments

Name Type Description
_vector vec2 The vector to compute the dot product with.

Returns

real The dot product.

Example

vec1 = new Vec2(5, 5);
vec2 = new Vec2(10, 10);
show_debug_message(vec1.dot(vec2)); // Result: 100

Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.