 |
CameraUtilsCalculateUpDirection Method |
Calculates the up direction vector from look direction vector.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic static Vector3 CalculateUpDirection(
Vector3 lookDirection,
Vector3 sceneUpVector
)
Parameters
- lookDirection Vector3
- look direction vector
- sceneUpVector Vector3
- up vector of the 3D scene, usually (0, 1, 0)
Return Value
Vector3up direction vector
See Also