nn::math::VEC2DistSq Function

Syntax

NN_MATH_INLINE f32 VEC2DistSq(
     const VEC2 * p1,
     const VEC2 * p2
);

Arguments

Name Description
in p1 Pointer to the left-hand value.
in p2 Pointer to the right-hand value.

Return Values

Returns the square of the distance between p1 and p2.

Description

Calculates the square of the distance between two vectors.


CONFIDENTIAL