MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / UpdatePrevious

Method UpdatePrevious

ogsr_engine/xrGame/PHDisabling.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25float SDisableVector::UpdatePrevious(const Fvector& new_vector)
26{
27 Fvector dif;
28 dif.sub(new_vector, previous);
29 previous.set(new_vector);
30 return dif.magnitude();
31}
32
33float SDisableVector::SumMagnitude() { return sum.magnitude(); }
34

Callers 2

UpdateValuesMethod · 0.80
ReinitMethod · 0.80

Calls 3

subMethod · 0.45
setMethod · 0.45
magnitudeMethod · 0.45

Tested by

no test coverage detected