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

Method min

olcPixelGameEngine.h:702–705  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

700
701 // Returns 'element-wise' min of this and another vector
702 inline constexpr v_2d min(const v_2d& v) const
703 {
704 return v_2d(std::min(x, v.x), std::min(y, v.y));
705 }
706
707 // Calculates scalar dot product between this and another vector
708 inline constexpr auto dot(const v_2d& rhs) const

Callers 3

clampMethod · 0.45
DrawSpriteMethod · 0.45
UpdateMethod · 0.45

Calls 1

v_2dClass · 0.70

Tested by 1

UpdateMethod · 0.36