scalar_div

function

scalar_div(_scalar)

Description

Divides every component of the vector by a scalar.

Arguments

Name Type Description
_scalar real Scalar to divide the vector by.

Returns

vec2 self

Example

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.