diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/QvLib/QvPerspectiveCamera.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'tool_src/QvLib/QvPerspectiveCamera.h')
| -rw-r--r-- | tool_src/QvLib/QvPerspectiveCamera.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvPerspectiveCamera.h b/tool_src/QvLib/QvPerspectiveCamera.h new file mode 100644 index 0000000..9ac8543 --- /dev/null +++ b/tool_src/QvLib/QvPerspectiveCamera.h @@ -0,0 +1,23 @@ +#ifndef _QV_PERSPECTIVE_CAMERA_ +#define _QV_PERSPECTIVE_CAMERA_ + +#include <QvSFFloat.h> +#include <QvSFRotation.h> +#include <QvSFVec3f.h> +#include <QvSubNode.h> + +class QvPerspectiveCamera : public QvNode { + + QV_NODE_HEADER(QvPerspectiveCamera); + + public: + QvSFVec3f position; // Location of viewpoint + QvSFRotation orientation; // Orientation (rotation with + // respect to (0,0,-1) vector) + QvSFFloat focalDistance; // Distance from viewpoint to + // point of focus. + QvSFFloat heightAngle; // Angle (in radians) of field + // of view, in height direction +}; + +#endif /* _QV_PERSPECTIVE_CAMERA_ */ |
