MCPcopy Create free account
hub / github.com/doldecomp/mkdd / GeoSignal

Method GeoSignal

src/Kaneshige/GeoSignal.cpp:32–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32GeoSignal::GeoSignal(const CrsData::SObject &obj) : GeographyObj(obj), mLink(this) {
33
34 if (sSupervisorCreateNum == 0) {
35 sSupervisor = new GeoSignalSupervisor();
36 sSupervisorCreateNum++;
37 }
38 reset();
39
40 mFrDir.set(mObjData->zNorm);
41 mFrDir.scale(0.0001f);
42
43 mUpDir.set(mObjData->yNorm);
44 mUpDir.scale(0.0001f);
45
46 mLfDir.cross(mUpDir, mFrDir);
47 mLfDir.normalize();
48
49 sSupervisor->entrySignal(this);
50}
51
52void GeoSignal::reset() {
53 GeographyObj::resetObject();

Callers

nothing calls this directly

Calls 6

crossMethod · 0.80
entrySignalMethod · 0.80
resetFunction · 0.50
setMethod · 0.45
scaleMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected