StaticgetStaticgetReturns the position of a camera with the given orientation looking at the given targetPosition from the given distance.
Position of the camera
StaticgetGets camera far distance given camera position and bounding box.
The position of the camera
Bounding box to focus on
far distance
StaticgetGets distance from given position (camera position) to center of bounding box.
The position of the camera
Bounding box to focus on
focal distance
StaticgetReturns the camera's horizontal angle from the given orientation. Can be used to control the OrbitingCameraController.
The orientation of the camera.
horizontal angle
StaticgetGets the camera orientation from the horizontal and vertical angle values.
Horizontal rotation angle
Vertical rotation Angle
Camera direction
StaticgetCalculate Orthographic camera orthoHeight Field to view bounding box.
Bounding box to focus on
Orthographic camera orthoHeight
StaticgetGets the radius of the sphere enclosing the bounding box.
Bounding box to focus on
radius
StaticgetStaticgetReturns the camera's vertical angle from the given orientation. Can be used to control the OrbitingCameraController.
The orientation of the camera.
vertical angle
StaticgetCalculates a camera position where bounding box given is shown on the screen.
2D viewport defaults to 0.0f, which would result in an assumed aspect ratio of 1.0f. Use the actual width and height, in pixels, of the 3D view to use the correct aspect ratio in calculations.
Must be a bounding box with hasExtent(BoundingBoxType box)
Camera orientation
Camera field of view (also used in ortho camera).
Width/Height in pixels of the 3D view
New Camera Position
Contains common utility members for camera setup Other camera utilities: Interpolation utilities can be found in: Cogs.Foundation/Geometry/EasingFn.h Cogs.Foundation/Geometry/Interpolator.h Cogs.Foundation/Geometry/Interpolation.hpp
Component: CinematicCameraComponent Library: gl-matrix