This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/include/Camera.h
github-classroom[bot] 5d6a4935ec
Initial commit
2024-09-26 09:17:55 +00:00

19 lines
347 B
C

#ifndef CAMERA_H
#define CAMERA_H
#include "Object.h"
#include <Eigen/Core>
struct Camera
{
// Origin or "eye"
Eigen::Vector3d e;
// orthonormal frame so that -w is the viewing direction.
Eigen::Vector3d u,v,w;
// image plane distance / focal length
double d;
// width and height of image plane
double width, height;
};
#endif