SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
projectionplane.h
Go to the documentation of this file.
1/*****************************************************************************************
2 * SGCT *
3 * Simple Graphics Cluster Toolkit *
4 * *
5 * Copyright (c) 2012-2026 *
6 * For conditions of distribution and use, see copyright notice in LICENSE.md *
7 ****************************************************************************************/
8
9#ifndef __SGCT__PROJECTIONPLANE__H__
10#define __SGCT__PROJECTIONPLANE__H__
11
12#include <sgct/sgctexports.h>
13
14#include <sgct/math.h>
15
16namespace sgct {
17
21class SGCT_EXPORT ProjectionPlane {
22public:
23 void setCoordinates(vec3 lowerLeft, vec3 upperLeft, vec3 upperRight);
24 void offset(const vec3& p);
25
29 const vec3& coordinateLowerLeft() const;
30
34 const vec3& coordinateUpperLeft() const;
35
39 const vec3& coordinateUpperRight() const;
40
41private:
42 vec3 _lowerLeft = vec3{ -1.f, -1.f, -2.f };
43 vec3 _upperLeft = vec3{ -1.f, 1.f, -2.f };
44 vec3 _upperRight = vec3{ 1.f, 1.f, -2.f };
45};
46
47} // namespace sgct
48
49#endif // __SGCT__PROJECTIONPLANE__H__
This class holds and manages the 3D projection plane.
Definition projectionplane.h:21
const vec3 & coordinateUpperLeft() const
void offset(const vec3 &p)
const vec3 & coordinateUpperRight() const
const vec3 & coordinateLowerLeft() const
void setCoordinates(vec3 lowerLeft, vec3 upperLeft, vec3 upperRight)
Definition actions.h:16
Definition math.h:56