MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / calculateVerticalDistance

Method calculateVerticalDistance

src/Scene/Camera.cpp:109–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109float Camera::calculateVerticalDistance() {
110 return distanceFromCar * sin(pitch * (SIMD_PI / 180.0f));
111}
112
113float Camera::calculateHorizontalDistance() {
114 return distanceFromCar * cos(pitch * (SIMD_PI / 180));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected