MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / add

Method add

src/Core/Transform/UnitVector.cpp:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void UnitVector::add(const UnitVector& vec)
47 {
48 const UnitVector pVec = vec.to(unit);
49 x += pVec.x;
50 y += pVec.y;
51 }
52
53 void UnitVector::add(const double x, const double y)
54 {

Callers 3

moveMethod · 0.45
transformRefMethod · 0.45
moveMethod · 0.45

Calls 1

toMethod · 0.80

Tested by

no test coverage detected