A camera orbiting target, distance away.
More...
#include <gui_controls/gui_viewport_types.h>
|
| float3 | target {} |
| float | distance = 8.0f |
| float | yaw = 0.6f |
| | radians round y; 0 looks down -z, positive turns left
|
| float | pitch = -0.45f |
| | radians; negative looks down
|
| float | fovY = 0.8727f |
| | radians, top to bottom (50 degrees)
|
| bool | orthographic = false |
| float | nearZ = 0.05f |
| float | farZ = 1000.0f |
A camera orbiting target, distance away.
◆ Forward()
| float3 tachyon::ViewportCamera::Forward |
( |
| ) |
const |
The way it looks, length 1.
◆ Position()
| float3 tachyon::ViewportCamera::Position |
( |
| ) |
const |
|
inline |
◆ Right()
| float3 tachyon::ViewportCamera::Right |
( |
| ) |
const |
◆ Up()
| float3 tachyon::ViewportCamera::Up |
( |
| ) |
const |
|
inline |
◆ View()
| float4x4 tachyon::ViewportCamera::View |
( |
| ) |
const |
|
inline |
◆ Projection()
| float4x4 tachyon::ViewportCamera::Projection |
( |
float | aspect | ) |
const |
For a view aspect wide over high.
Orthographic, it's as high as the perspective view is at the target.
◆ WorldPerPixel()
| float tachyon::ViewportCamera::WorldPerPixel |
( |
float3 | at, |
|
|
float | heightPixels ) const |
How many world units a pixel is at at, in a view heightPixels high.
◆ target
| float3 tachyon::ViewportCamera::target {} |
◆ distance
| float tachyon::ViewportCamera::distance = 8.0f |
◆ yaw
| float tachyon::ViewportCamera::yaw = 0.6f |
radians round y; 0 looks down -z, positive turns left
◆ pitch
| float tachyon::ViewportCamera::pitch = -0.45f |
radians; negative looks down
◆ fovY
| float tachyon::ViewportCamera::fovY = 0.8727f |
radians, top to bottom (50 degrees)
◆ orthographic
| bool tachyon::ViewportCamera::orthographic = false |
◆ nearZ
| float tachyon::ViewportCamera::nearZ = 0.05f |
◆ farZ
| float tachyon::ViewportCamera::farZ = 1000.0f |
The documentation for this struct was generated from the following file: