dot#

Fully qualified name: isaacsim::core::includes::math::dot

inline float isaacsim::core::includes::math::dot(
const carb::Float3 &v1,
const carb::Float3 &v2,
)#

Computes the dot product of two 3D vectors.

Calculates the scalar product of two vectors, representing their similarity.

Note

Returns 0 for perpendicular vectors, positive for similar directions, negative for opposite directions

Parameters:
  • v1[in] First vector

  • v2[in] Second vector

Returns:

float The dot product scalar