Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdCamera::orbit Method
Syntax
C++
void orbit(double theta, double phi);

Orbits the camera about its target with a specified angle to the right and up. 

 

Parameters
Description
theta
[in] An angle to orbit the camera to the right (in degrees).
phi
[in] An angle to orbit the camera up (in degrees).

The camera moves on a sphere with the center at the camera target and a radius that is equal to the distance from the camera to the target. In other words, the distance between the camera and its target remain unchanged. The camera is first rotated about its target on the theta angle, then rotated on the phi angle.

Copyright © 2002-2022. Open Design Alliance All rights reserved.