MCPcopy Create free account
hub / github.com/WheretIB/nullc / operator+

Function operator+

tests/TestConversions.cpp:8–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6float x, y;\r\n\
7}\r\n\
8float2 float2(float x, y){ float2 ret; ret.x = x; ret.y = y; return ret; }\r\n\
9\r\n\
10float2 operator+(float2 ref a, float2 ref b){ return float2(a.x+b.x, a.y+b.y); }\r\n\
11float2 ref operator+=(float2 ref a, float2 ref b){ a.x += b.x; a.y += b.y; return a; }\r\n\
12float2 ref operator=(float2 ref a, float2 ref b){ a.x = b.x; a.y = b.y; return a; }\r\n\
13float2 a, b, c, d;\r\n\

Callers

nothing calls this directly

Calls 1

float2Function · 0.70

Tested by

no test coverage detected