Click or drag to resize
Ab4d.SharpEngine logo

ICamera Methods

The ICamera type exposes the following members.

Methods
 NameDescription
Public methodGetCameraMatrices GetCameraMatrices method gets the camera's view and projection matrices. When the optional parameter updateIfDirty is true (by default) then the Update(Boolean) method is called if the camera was changed after the last matrices were calculated.
Public methodGetCameraPlaneOrientation GetCameraPlaneOrientation gets plane's normal, width and height vectors that can be used to orient the plane 3D model so that it is aligned with the camera view.
Public methodGetCameraPosition Returns the current position of the camera.
Public methodGetLookDirection Returns the normalized look direction of the camera.
Public methodGetUpDirection Returns the normalized up direction of the camera.
Public methodGetViewProjectionMatrix Gets a pre-calculated View * Projection matrix.
Public methodRotateCamera Rotates the camera for the specified heading and attitude.
Public methodSerializeToJson SerializeToJson serializes the specified camera into a json string. The returned string starts with assembly qualified camera type name. To create a camera from json string use the static DeserializeJson(String) method.
Public methodUpdate Update method updates the camera matrices when needed (when there were any change in the camera properties) or when forceMatrixUpdate is set to true.
Public methodUpdateAnimations UpdateAnimations method updates the camera's rotation when it is animated.
Top
See Also