MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / GetPosition

Method GetPosition

src/engine/SceneTypes.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57dm::double3 Light::GetPosition() const
58{
59 auto node = GetNode();
60 if (!node)
61 return dm::double3::zero();
62
63 daffine3 localToWorld = node->GetLocalToWorldTransform();
64 return localToWorld.m_translation;
65}
66
67dm::double3 Light::GetDirection() const
68{

Callers 2

SwitchToFirstPersonMethod · 0.80
SwitchToThirdPersonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected