is_normalized

function

is_normalized()

Description

Checks whether self is normalized.

Returns

bool Whether self is length of 1 or not.

Example

vec1 = new Vec3(10, 10, 10);
show_debug_message(vec1.is_normalized());  // Result: false
vec1.normalize();
show_debug_message(vec1.is_normalized());  // Result: true

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