Realtime Fractal Renderer Documentation
Camera Class Reference

A class for storing and controlling a camera's position and view direction within a scene. More...

#include <Camera.h>

Collaboration diagram for Camera:
Collaboration graph

Public Member Functions

 Camera ()
 
 Camera (Eigen::Vector3f up, float sensitivity, float speed)
 
void update (Events e, float delta_time)
 Updates the camera using the events specified. Use this method when using keyboard and mouse input. More...
 

Data Fields

Eigen::Vector3f position
 The current position of the camera in world space. More...
 
Eigen::Vector3f facing
 A normalised vector representing the direction that the camera is facing. More...
 
float speed = 5.0f
 
float sprint_multiplier = 3.0f
 
float sensitivity = 1.0f
 
float yaw = 0.0f
 
float pitch = 0.0f
 

Detailed Description

A class for storing and controlling a camera's position and view direction within a scene.

Definition at line 19 of file Camera.h.

Constructor & Destructor Documentation

◆ Camera() [1/2]

Camera ( )
inline

Definition at line 24 of file Camera.h.

◆ Camera() [2/2]

Camera ( Eigen::Vector3f  up,
float  sensitivity,
float  speed 
)
inline

Definition at line 27 of file Camera.h.

Member Function Documentation

◆ update()

void update ( Events  e,
float  delta_time 
)
inline

Updates the camera using the events specified. Use this method when using keyboard and mouse input.

Parameters
eThe keyboard and mouse events
delta_timeThe time taken for last frame to execute fully

Definition at line 53 of file Camera.h.

Field Documentation

◆ facing

Eigen::Vector3f facing

A normalised vector representing the direction that the camera is facing.

Definition at line 40 of file Camera.h.

◆ pitch

float pitch = 0.0f

Definition at line 46 of file Camera.h.

◆ position

Eigen::Vector3f position

The current position of the camera in world space.

Definition at line 35 of file Camera.h.

◆ sensitivity

float sensitivity = 1.0f

Definition at line 45 of file Camera.h.

◆ speed

float speed = 5.0f

Definition at line 42 of file Camera.h.

◆ sprint_multiplier

float sprint_multiplier = 3.0f

Definition at line 43 of file Camera.h.

◆ yaw

float yaw = 0.0f

Definition at line 46 of file Camera.h.


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