API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdCamera Class > OdCamera Methods > OdCamera::orbit Method
OdCamera::orbit Method
Syntax
C++
void orbit(double theta, double phi);
Parameters 
Description 
double theta 
[in] An angle to orbit the camera to the right (in degrees).  
double phi 
[in] An angle to orbit the camera up (in degrees). 

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

 

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–2020. Open Design Alliance. All rights reserved.