nn::math::VEC3SquareDist Function

Syntax

NN_MATH_INLINE f32 VEC3SquareDist(
     const VEC3 * p1,
     const VEC3 * 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