length_squared

function

length_squared()

Description

Calculates the square of the length of self.

Returns

real Square of the length of self.

Example

vec1 = new Vec2(1, 1);
show_debug_message(vec1.length_squared()); // Result: 2

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