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

Function operator -

utilities/olcUTIL_Geometry2D.h:453–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451 // Unary negation operator overoad for inverting a vector
452 template<class T>
453 inline constexpr auto operator - (const v_2d<T>& lhs)
454 {
455 return v_2d(-lhs.x, -lhs.y);
456 }
457
458 // Subtraction operator overloads between vectors and scalars, and vectors and vectors
459 template<class TL, class TR>

Callers

nothing calls this directly

Calls 1

v_2dClass · 0.70

Tested by

no test coverage detected