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

Method Update

ogsr_engine/xrGame/PHDisabling.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16float SDisableVector::Update(const Fvector& new_vector)
17{
18 Fvector dif;
19 dif.sub(new_vector, previous);
20 previous.set(new_vector);
21 sum.add(dif);
22 return dif.magnitude();
23}
24
25float SDisableVector::UpdatePrevious(const Fvector& new_vector)
26{

Callers 1

UpdateValuesMethod · 0.45

Calls 4

subMethod · 0.45
setMethod · 0.45
addMethod · 0.45
magnitudeMethod · 0.45

Tested by

no test coverage detected