MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / max

Method max

utilities/olcUTIL_Geometry2D.h:280–283  ·  view source on GitHub ↗

Returns 'element-wise' max of this and another vector

Source from the content-addressed store, hash-verified

278
279 // Returns 'element-wise' max of this and another vector
280 inline constexpr v_2d max(const v_2d& v) const
281 {
282 return v_2d(std::max(x, v.x), std::max(y, v.y));
283 }
284
285 // Returns 'element-wise' min of this and another vector
286 inline constexpr v_2d min(const v_2d& v) const

Callers 3

clampMethod · 0.95
envelope_rFunction · 0.45
UpdateMethod · 0.45

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected