Camera with orthographic projection.
More...
#include <OrthographicCamera.h>
|
std::ostream & | operator<< (std::ostream &os, const OrthographicCamera &camera) |
| Convert world point coordinates to view point coordinates. View coordinates (canonical coordinates) are in range [-1, 1]. More...
|
|
Camera with orthographic projection.
◆ OrthographicCamera()
spatium::gfx3d::OrthographicCamera::OrthographicCamera |
( |
double |
near, |
|
|
double |
far, |
|
|
double |
size = 10 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | near | |
[in] | far | |
[in] | size | Orthographic size of image plane on Y axis, height of view. |
◆ ~OrthographicCamera()
spatium::gfx3d::OrthographicCamera::~OrthographicCamera |
( |
| ) |
|
|
overridedefault |
◆ size()
double spatium::gfx3d::OrthographicCamera::size |
( |
| ) |
const |
|
inline |
Get size of the viewing plane along the Y axis.
- Returns
- Viewing plane size
◆ operator<<
Convert world point coordinates to view point coordinates. View coordinates (canonical coordinates) are in range [-1, 1].
- Parameters
-
- Returns
- View point coordinates Output to ostream
◆ m_size
double spatium::gfx3d::OrthographicCamera::m_size |
|
protected |
The documentation for this class was generated from the following file: