// Vec3Max selects the maximum value of each element from the specified vectors. // // mx [in,out] A vector, will be updated with the result. // v [in] A vector. func Vec3Max(mx, v Vec3) { mx[0] = math32.Max(mx[0], v[0]) mx[1] = math32.Max(mx[1], v[1]) mx[2] = math32.Max(mx[2], v[2]) }
// Vec2Max selects the maximum value of each element from the specified vectors. // // mx [in,out] A vector, will be updated with the result. // v [in] A vector. func Vec2Max(mx, v Vec2) { mx[0] = math32.Max(mx[0], v[0]) mx[1] = math32.Max(mx[1], v[1]) }