MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / operator +

Function operator +

olcPixelGameEngine.h:829–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827 // Unary Addition operator (pointless but i like the platinum trophies)
828 template<class T>
829 inline constexpr auto operator + (const v_2d<T>& lhs)
830 {
831 return v_2d(+lhs.x, +lhs.y);
832 }
833
834 // Addition operator overloads between vectors and scalars, and vectors and vectors
835 template<class TL, class TR>

Callers

nothing calls this directly

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected