newton.utils.vec_leaky_min#

newton.utils.vec_leaky_min(a, b)[source]#

Compute the elementwise “leaky” minimum of two 3D vectors.

This uses leaky_min for each component.

Parameters:
  • a (wp.vec3) – The first vector.

  • b (wp.vec3) – The second vector.

Returns:

The elementwise leaky minimum.

Return type:

wp.vec3