VEC4DistSq

nn::math::VEC4DistSq Function

Syntax

NN_MATH_INLINE f32 VEC4DistSq(
     const VEC4 * p1,
     const VEC4 * p2
);

Parameters

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