Click or drag to resize
Ab4d.SharpEngine logo

CameraUtilsCalculateCameraDirections Method

Returns the lookDirection and upDirection from the specified heading, attitude and bank (angles in degrees).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static void CalculateCameraDirections(
	float heading,
	float attitude,
	float bank,
	out Vector3? lookDirection,
	out Vector3? upDirection
)

Parameters

heading  Single
heading in degrees
attitude  Single
attitude in degrees
bank  Single
bank in degrees
lookDirection  Vector3
lookDirection as normalized Vector3
upDirection  Vector3
upDirection as normalized Vector3
See Also