MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / GetCurrentCameraPosDirUp

Method GetCurrentCameraPosDirUp

Rtxpt/Sample.cpp:898–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896}
897
898std::string Sample::GetCurrentCameraPosDirUp() const
899{
900 auto toString = [](const float3 & val) { return std::to_string(val.x) + "," + std::to_string(val.y) + "," + std::to_string(val.z); };
901 return toString(m_camera.GetPosition()) + "," + toString(m_camera.GetDir()) + "," + toString(m_camera.GetUp());
902}
903
904bool Sample::SetCurrentCameraPosDirUp(const std::string & val)
905{

Callers 1

buildUIMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected