Struct CameraProperties
Collection of camera properties that can be blended
public struct CameraProperties
Constructors
CameraProperties()
public CameraProperties()
Fields
FarPlane
Far Plane of the Camera
public BlendableFloat FarPlane
Field Value
FieldOfView
FOV Of the Camera
public BlendableFloat FieldOfView
Field Value
NearPlane
Near Plane of the Camera
public BlendableFloat NearPlane
Field Value
Position
Position of the camera
public BlendableVector3 Position
Field Value
Rotation
Orientation of the Camera
public BlendableQuaternion Rotation
Field Value
Methods
ApplyToCamera(Camera)
Applies the camera properties to a real camera
public void ApplyToCamera(Camera camera)
Parameters
camera
Camera
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
GetProjectionMatrix()
Returns the ProjectionMatrix constructed from the camera properties
public Matrix GetProjectionMatrix()
Returns
- Matrix
GetViewMatrix()
Returns the ViewMatrix constructed from the camera properties
public Matrix GetViewMatrix()
Returns
- Matrix
LerpAndSet(CameraProperties, CameraProperties, float)
Utility class to blend between 2 camera properties and apply them to this property.
public void LerpAndSet(CameraProperties start, CameraProperties end, float t)
Parameters
start
CameraPropertiesStarting properties
end
CameraPropertiesEnding Properties
t
floatLerp value