newton.utils.vec_max#

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

Compute the elementwise maximum of two 3D vectors.

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

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

Returns:

The elementwise maximum.

Return type:

wp.vec3