opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
osc::PolarPerspectiveCamera Struct Referencefinal

#include <polar_perspective_camera.h>

Collaboration diagram for osc::PolarPerspectiveCamera:
[legend]

Public Member Functions

 PolarPerspectiveCamera ()
 
void reset ()
 
void pan (float aspect_ratio, Vector2 mouse_delta)
 
void drag (Vector2 mouse_delta)
 
void rescale_znear_and_zfar_based_on_radius ()
 
Matrix4x4 view_matrix () const
 
Matrix4x4 projection_matrix (float aspect_ratio) const
 
Vector2 project_onto_viewport (const Vector3 &world_space_position, const Rect &viewport_rect) const
 
Vector3 position () const
 
Ray unproject_topleft_position_to_world_ray (Vector2 pos, Vector2 dimensions) const
 
float frustum_height_at_depth (float depth) const
 

Public Attributes

float radius
 
Radians theta
 
Radians phi
 
Vector3 focus_point
 
Radians vertical_field_of_view
 
float znear
 
float zfar
 

Friends

bool operator== (const PolarPerspectiveCamera &, const PolarPerspectiveCamera &)=default
 

Constructor & Destructor Documentation

◆ PolarPerspectiveCamera()

osc::PolarPerspectiveCamera::PolarPerspectiveCamera ( )

Member Function Documentation

◆ drag()

void osc::PolarPerspectiveCamera::drag ( Vector2  mouse_delta)

◆ frustum_height_at_depth()

float osc::PolarPerspectiveCamera::frustum_height_at_depth ( float  depth) const

◆ pan()

void osc::PolarPerspectiveCamera::pan ( float  aspect_ratio,
Vector2  mouse_delta 
)

◆ position()

Vector3 osc::PolarPerspectiveCamera::position ( ) const

◆ project_onto_viewport()

Vector2 osc::PolarPerspectiveCamera::project_onto_viewport ( const Vector3 world_space_position,
const Rect viewport_rect 
) const

◆ projection_matrix()

Matrix4x4 osc::PolarPerspectiveCamera::projection_matrix ( float  aspect_ratio) const

◆ rescale_znear_and_zfar_based_on_radius()

void osc::PolarPerspectiveCamera::rescale_znear_and_zfar_based_on_radius ( )

◆ reset()

void osc::PolarPerspectiveCamera::reset ( )

◆ unproject_topleft_position_to_world_ray()

Ray osc::PolarPerspectiveCamera::unproject_topleft_position_to_world_ray ( Vector2  pos,
Vector2  dimensions 
) const

◆ view_matrix()

Matrix4x4 osc::PolarPerspectiveCamera::view_matrix ( ) const

Friends And Related Symbol Documentation

◆ operator==

Member Data Documentation

◆ focus_point

Vector3 osc::PolarPerspectiveCamera::focus_point

◆ phi

Radians osc::PolarPerspectiveCamera::phi

◆ radius

float osc::PolarPerspectiveCamera::radius

◆ theta

Radians osc::PolarPerspectiveCamera::theta

◆ vertical_field_of_view

Radians osc::PolarPerspectiveCamera::vertical_field_of_view

◆ zfar

float osc::PolarPerspectiveCamera::zfar

◆ znear

float osc::PolarPerspectiveCamera::znear

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