MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / UpdateWorldData

Method UpdateWorldData

GTE/Graphics/ViewVolumeNode.cpp:43–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void ViewVolumeNode::UpdateWorldData(double applicationTime)
44{
45 Node::UpdateWorldData(applicationTime);
46
47 if (mViewVolume)
48 {
49 Vector4<float> position = worldTransform.GetTranslationW1();
50
51 Matrix4x4<float> const& rotate = worldTransform.GetHMatrix();
52#if defined(GTE_USE_VEC_MAT)
53 Vector4<float> dVector = rotate.GetRow(0);
54 Vector4<float> uVector = rotate.GetRow(1);
55 Vector4<float> rVector = rotate.GetRow(2);
56#else
57 Vector4<float> dVector = rotate.GetCol(0);
58 Vector4<float> uVector = rotate.GetCol(1);
59 Vector4<float> rVector = rotate.GetCol(2);
60#endif
61 mViewVolume->SetFrame(position, dVector, uVector, rVector);
62 mOnUpdate(this);
63 }
64}
65
66

Callers

nothing calls this directly

Calls 4

GetTranslationW1Method · 0.80
SetFrameMethod · 0.80
GetRowMethod · 0.45
GetColMethod · 0.45

Tested by

no test coverage detected