Skip to content
Snippets Groups Projects
CamObs.h 313 B
Newer Older
Postea's avatar
Postea committed
#pragma once

#include "../tools/Mat4.h"
#include "Ray.h"

Postea's avatar
Postea committed
namespace cam {
class CamObs {
Yoel's avatar
Yoel committed
   public:
	CamObs(const util::Mat4& mat, float theta, int width, int height);
Yoel's avatar
Yoel committed

Yoel's avatar
Yoel committed
	Ray create(float x, float y) const;
Yoel's avatar
Yoel committed

Yoel's avatar
Yoel committed
	const int width, height;
Yoel's avatar
Yoel committed
   private:
	const util::Mat4 mat;
	const float theta;
Yoel's avatar
Yoel committed
}  // namespace cam