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

Method max

olcPixelGameEngine.h:696–699  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

694
695 // Returns 'element-wise' max of this and another vector
696 inline constexpr v_2d max(const v_2d& v) const
697 {
698 return v_2d(std::max(x, v.x), std::max(y, v.y));
699 }
700
701 // Returns 'element-wise' min of this and another vector
702 inline constexpr v_2d min(const v_2d& v) const

Callers 3

clampMethod · 0.95
DrawSpriteMethod · 0.45
UpdateMethod · 0.45

Calls 1

v_2dClass · 0.70

Tested by 1

UpdateMethod · 0.36