function
mirror()
Mirrors the vector off the vector defined by a normal.
Name | Type | Description |
---|---|---|
_normal | vec2 |
The normal to mirror the vector. |
vec2
The mirrored vector.
vec1 = new Vec2(2, 3);
vec2 = new Vec2(4, 4);
show_debug_message(vec1.mirror(vec2)); // Result: { x : 3.00, y : 2.00 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.