Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Math
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Math/CameraPoseMath.h |
| Include | #include "Math/CameraPoseMath.h" |
Syntax
class FCameraPoseMath
Remarks
A utility class for mathematical functions related to a camera pose.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMatrix | BuildProjectionMatrix
(
const FCameraPose& CameraPose, |
Builds the projection matrix of the given camera pose. | |
| FMatrix | BuildViewProjectionMatrix
(
const FCameraPose& CameraPose, |
Builds the view-projection matrix of the given camera pose. | |
| double | GetEffectiveAspectRatio
(
const FCameraPose& CameraPose, |
Gets the aspect ratio of the viewport associated with the given player controller. | |
| FCameraFieldsOfView | GetEffectiveFieldsOfView
(
const FCameraPose& CameraPose |
Gets both horizontal and vertical effective fields of view, using the sensor aspect ratio. | |
| FCameraFieldsOfView | GetEffectiveFieldsOfView
(
const FCameraPose& CameraPose, |
Gets both horizontal and vertical effective fields of view, using the given player controller's viewport aspect ratio. | |
| FCameraFieldsOfView | GetEffectiveFieldsOfView
(
const FCameraPose& CameraPose, |
Gets both horizontal and vertical effective fields of view, using the given aspect ratio. | |
| TOptional< FVector2d > | ProjectCameraToScreen
(
const FCameraPose& CameraPose, |
Projects the given camera-local point onto screen-space. | |
| TOptional< FVector2d > | ProjectToScreen
(
const FMatrix& ViewProjectionMatrix, |
Projects the given point onto screen-space. | |
| TOptional< FVector2d > | ProjectWorldToScreen
(
const FCameraPose& CameraPose, |
Projects the given world point onto screen-space. | |
| FRay3d | UnprojectFromScreen
(
const FMatrix& InverseViewProjectionMatrix, |
Unprojects the given screen-space point into a ray. | |
| FVector3d | UnprojectFromScreen
(
const FMatrix& InverseViewProjectionMatrix, |
Unprojects the given screen-space point into a point given an expected distance. | |
| FRay3d | UnprojectScreenToCamera
(
const FCameraPose& CameraPose, |
Unproject a screen-space point into a camera-local ray. | |
| FVector3d | UnprojectScreenToCamera
(
const FCameraPose& CameraPose, |
Unproject a screen-space point into a camera-local point given an expected distance. | |
| FRay3d | UnprojectScreenToWorld
(
const FCameraPose& CameraPose, |
Unproject a screen-space point into a world-space ray. | |
| FVector3d | UnprojectScreenToWorld
(
const FCameraPose& CameraPose, |
Unproject a screen-space point into a world-space point given an expected distance. |