newton.utils.vec_leaky_max#

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

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

This uses leaky_max for each component.

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

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

Returns:

The elementwise leaky maximum.

Return type:

wp.vec3