function
scalar_mul(_scalar)
Multiplies every component of the vector with a scalar.
Name | Type | Description |
---|---|---|
_scalar | real |
Scalar to multiply the vector with. |
vec3
self
vec1 = new Vec3(10, 10, 10);
show_debug_message(vec1.scalar_mul(2)); // Result: { x : 20, y : 20, z: 20 }
Copyright © 2020, eL-Falso. Built on December 14, 2020 using GMDoc.