SPH
Public Attributes | List of all members
CameraParams Struct Reference

#include <Camera.h>

Public Attributes

Pixel imageSize = Pixel(1024, 768)
 Size of the image. More...
 
Vector position = Vector(0._f, 0._f, -1._f)
 Camera position in space. More...
 
Vector target = Vector(0._f)
 Look-at point in space. More...
 
Vector up = Vector(0._f, 1._f, 0._f)
 Up vector of the camera (direction) More...
 
Interval clipping = Interval(EPS, INFTY)
 Defines the clipping planes of the camera. More...
 
struct {
   Float   fov = PI / 3._f
 Field of view (angle) More...
 
perspective
 
struct {
   float   fov = 1.e5_f
 Field of view (world units). More...
 
   Optional< float >   cutoff = NOTHING
 Cutoff distance of the camera. More...
 
ortho
 

Detailed Description

Definition at line 134 of file Camera.h.

Member Data Documentation

◆ clipping

Interval CameraParams::clipping = Interval(EPS, INFTY)

Defines the clipping planes of the camera.

Definition at line 148 of file Camera.h.

◆ cutoff

Optional<float> CameraParams::cutoff = NOTHING

Cutoff distance of the camera.

Definition at line 161 of file Camera.h.

◆ fov [1/2]

Float CameraParams::fov = PI / 3._f

Field of view (angle)

Definition at line 152 of file Camera.h.

◆ fov [2/2]

float CameraParams::fov = 1.e5_f

Field of view (world units).

Definition at line 158 of file Camera.h.

◆ imageSize

Pixel CameraParams::imageSize = Pixel(1024, 768)

Size of the image.

Definition at line 136 of file Camera.h.

◆ 

struct { ... } CameraParams::ortho

◆ 

struct { ... } CameraParams::perspective

◆ position

Vector CameraParams::position = Vector(0._f, 0._f, -1._f)

Camera position in space.

Definition at line 139 of file Camera.h.

◆ target

Vector CameraParams::target = Vector(0._f)

Look-at point in space.

Definition at line 142 of file Camera.h.

◆ up

Vector CameraParams::up = Vector(0._f, 1._f, 0._f)

Up vector of the camera (direction)

Definition at line 145 of file Camera.h.


The documentation for this struct was generated from the following file: