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

Function operator +

utilities/olcUTIL_Geometry2D.h:413–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411 // Unary Addition operator (pointless but i like the platinum trophies)
412 template<class T>
413 inline constexpr auto operator + (const v_2d<T>& lhs)
414 {
415 return v_2d(+lhs.x, +lhs.y);
416 }
417
418 // Addition operator overloads between vectors and scalars, and vectors and vectors
419 template<class TL, class TR>

Callers

nothing calls this directly

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected