Graphmath.Vec2.length_squared
You're seeing just the function
length_squared
, go back to Graphmath.Vec2 module for more information.
Link to this function
length_squared(a)
Specs
length_squared(a)
finds the square of the length of a vec2 (a).
In many cases, this is sufficient for comparisions and avaoids a sqrt.
It returns a float of the value (axax + ayay).
length_squared(a)
finds the square of the length of a vec2
.
a
is the vec2
to find the length squared of.
It returns a float of the value a<sub>x</sub><sup>2</sup> + a<sub>y</sub><sup>2</sup>.
In many cases, this is sufficient for comparisons and avoids a square root.