MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getStandardDistance

Method getStandardDistance

Source/Render/View.cpp:151–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151float View::getStandardDistance() const noexcept {
152 return _size.height * 0.5f / std::tan(bx::toRad(_fieldOfView) * 0.5f);
153}
154
155float View::getAspectRatio() const noexcept {
156 return _size.width / _size.height;

Callers 4

updateViewMethod · 0.80
Camera.cppFile · 0.80
updateViewMethod · 0.80

Calls 2

toRadFunction · 0.85
tanFunction · 0.50

Tested by

no test coverage detected