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

Method ceil

olcPixelGameEngine.h:690–693  ·  view source on GitHub ↗

Rounds both components up

Source from the content-addressed store, hash-verified

688
689 // Rounds both components up
690 inline constexpr v_2d ceil() const
691 {
692 return v_2d(std::ceil(x), std::ceil(y));
693 }
694
695 // Returns 'element-wise' max of this and another vector
696 inline constexpr v_2d max(const v_2d& v) const

Callers 4

DrawPartialDecalMethod · 0.45
FillRectDecalMethod · 0.45
DrawRectDecalMethod · 0.45
GetBottomRightTileMethod · 0.45

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected