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

Function operator -

olcPixelGameEngine.h:869–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867 // Unary negation operator overoad for inverting a vector
868 template<class T>
869 inline constexpr auto operator - (const v_2d<T>& lhs)
870 {
871 return v_2d(-lhs.x, -lhs.y);
872 }
873
874 // Subtraction operator overloads between vectors and scalars, and vectors and vectors
875 template<class TL, class TR>

Callers

nothing calls this directly

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected