DX9ToolsR4 - Created by: X

Camera.Reset Method 

Resets the camera to it's default values.

[Visual Basic]
Public Sub Reset( _
   Optional ByVal DoUpdate As Boolean = False _
)
[C#]
public void Reset(
   bool DoUpdate
);

Parameters

DoUpdate
If DoUpdate is False but the AutoUpdateView property is True, Reset will call the UpdateView method. If DoUpdate is False but the AutoUpdateProjection property is True, Reset will call the UpdateProjection method.

Remarks

If either the AutoUpdateView or the DoUpdate parameter is true a call to the UpdateView method is done automatically.

If either the AutoUpdateProjection or the DoUpdate parameter is true a call to the UpdateProjection method is done automatically.

Reset sets the camera to the fallowing default values ...

     ViewMatrix                      Matrix.Identity
     ProjectionMatrix                Matrix.Identity
     Position                        Vector3(0, 0, -100)
     LookAt                          Vector3(0, 0, 0)
     Orientation                     Vector3(0, 1, 0)
     FieldOfView                     90 degrees 'Direct3D.Geometry.DegreeToRadian(90)'
     AspectRation                    1
     NearPlane                       1
     FarPlane                        1000
 

See Also

Camera Class | CBX.Libs.DX9ToolsR4 Namespace