negate

function

negate()

Description

Negates the vector.

Returns

vec2 The negated vector.

Example

vec1 = new Vec2(10, 10);
show_debug_message(vec1.negate()); // Result: { x : -10, y : -10 }

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