Skip to content

Add getters for camera parameters #1419

@Nokse22

Description

@Nokse22

Is your feature request related to a problem? Please describe.
When using libf3d and an external window you will need to use yaw, azimuth, elevation to move but to get them in degree you would need to calculate them from the camera position.

Describe the solution you'd like
It could be useful to have getters for these parameters. I know they are not actually parameters, but ways to manipulate the camera, but a getter for yaw/elevation that returns the angle of the camera to the model can be useful, also distance from the model etc.

Suggested implementation
In camera.h and camera.cxx , add camera::getYaw, camera::getAzimuth, camera::getElevation. Implement them to be computed on the fly.

Metadata

Metadata

Assignees

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions