MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / operator-

Method operator-

src/Core/Transform/UnitVector.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 UnitVector UnitVector::operator-(const UnitVector& sub) const
74 {
75 const UnitVector pVec = sub.to(unit);
76 return UnitVector(x - pVec.x, y - pVec.y, unit);
77 }
78
79 UnitVector& UnitVector::operator-=(const UnitVector& sub)
80 {

Callers

nothing calls this directly

Calls 2

UnitVectorClass · 0.85
toMethod · 0.80

Tested by

no test coverage detected