function
scalar_div(_scalar)
Divides every component of the vector by a scalar.
| Name | Type | Description |
|---|---|---|
| _scalar | real |
Scalar to divide the vector by. |
vec2 self
vec1 = new Vec2(10, 10);
show_debug_message(vec1.scalar_div(2)); // Result: { x : 5, y : 5 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.