newton.math.vec_leaky_max#

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

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

This uses leaky_max for each component.

Parameters:
  • a (vec3f) – The first vector.

  • b (vec3f) – The second vector.

Returns:

The elementwise leaky maximum.

Return type:

wp.vec3