SceneProjection struct
#include <Editor/Public/SceneView.h>
Where a camera puts the world in a view, in the view's UI units (origin top left).
Public static functions
- static auto Of(const ViewCamera& camera, float width, float height) -> SceneProjection
Public functions
- auto Project(const float world[3], float& x, float& y) const -> bool
- Where
worldshows; false if it is behind the camera. - void Ray(float x, float y, float origin[3], float direction[3]) const
- The ray through (
x,y): from the eye, unit length. - auto Depth(const float world[3]) const -> float
- How far in front of the camera
worldis. - auto UnitsAt(const float world[3]) const -> float
- World units one UI unit covers at
world'sdepth.