SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
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
16
namespace
sgct
{
17
21
class
SGCT_EXPORT
ProjectionPlane
{
22
public
:
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
41
private
:
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__
sgct::ProjectionPlane
This class holds and manages the 3D projection plane.
Definition
projectionplane.h:21
sgct::ProjectionPlane::coordinateUpperLeft
const vec3 & coordinateUpperLeft() const
sgct::ProjectionPlane::offset
void offset(const vec3 &p)
sgct::ProjectionPlane::coordinateUpperRight
const vec3 & coordinateUpperRight() const
sgct::ProjectionPlane::coordinateLowerLeft
const vec3 & coordinateLowerLeft() const
sgct::ProjectionPlane::setCoordinates
void setCoordinates(vec3 lowerLeft, vec3 upperLeft, vec3 upperRight)
math.h
sgct
Definition
actions.h:16
sgct::vec3
Definition
math.h:56
sgct
projection
projectionplane.h
Generated by
1.18.0