Projection Class |
Namespace: DigitalRune.Graphics
The Projection type exposes the following members.
Name | Description | |
---|---|---|
Projection | Initializes a new instance of the Projection class |
Name | Description | |
---|---|---|
Clone |
Creates a new Projection that is a clone (deep copy) of the current instance.
| |
CloneCore |
Makes the instance a clone (deep copy) of the specified
Projection.
| |
ComputeProjection |
Computes the projection matrix.
| |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the Projection
derived class.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invalidate |
Invalidates the projection matrix.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Set |
Sets the projection from the given projection matrix.
| |
ToMatrix44F |
Converts a projection to a 4x4 transformation matrix.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToXna |
Converts a projection to a 4x4 transformation matrix (XNA Framework). (Only available in the
XNA-compatible build.)
|
Name | Description | |
---|---|---|
(Projection to Matrix44F) |
Converts the projection to a 4x4 transformation matrix.
| |
(Projection to Matrix) |
Converts the projection to a 4x4 transformation matrix (XNA Framework). (Only available in
the XNA-compatible build.)
|
Name | Description | |
---|---|---|
AspectRatio |
Gets the aspect ratio (width / height) of the view.
| |
Bottom |
Gets or sets the minimum y-value of the view volume at the near view-plane.
| |
Depth | ||
Far |
Gets or sets the distance to the far view plane.
| |
FieldOfViewX |
Gets the horizontal field of view in radians.
| |
FieldOfViewY |
Gets the vertical field of view in radians.
| |
Height |
Gets the height of the view volume at the near view plane.
| |
Inverse |
Gets the inverse of the projection matrix.
| |
Left |
Gets or sets the minimum x-value of the view volume at the near view-plane.
| |
Near |
Gets or sets the distance to the near view plane.
| |
Right |
Gets or sets the maximum x-value of the view volume at the near view-plane.
| |
Top |
Gets or sets the maximum y-value of the view volume at the near view-plane.
| |
ViewVolume |
Gets (or sets) the shape of the view volume (viewing frustum).
| |
Width |
Gets the width of the view volume at the near view plane.
|
The property ViewVolume defines the bounding shape of the projection which can be used for frustum culling. The shape is updated automatically when the properties of the projection change.
Notes to Inheritors:
Derived classes must initialize ViewVolume and provide the implementation of the
Set(Matrix44F) method. The base class caches a Matrix44F which describes the
projection. Therefore, derived classes must call Invalidate if the projection is
changed. The Projection base class will call ComputeProjection of
derived classes to get and cache the new projection matrix when needed.