06-24-2023, 04:32 PM
Yep, correct. It's the same formula I use in my toolbox:
Code: (Select All)
FUNCTION VectorLength (V AS Type_Vector2)
' --> _______________________
' Formula: || V || = \/ V.x * V.x + V.y * V.y
VectorLength = _HYPOT(V.x, V.y)
END FUNCTION