OrthographicProjection Class |
Namespace: DigitalRune.Graphics
The OrthographicProjection type exposes the following members.
Name | Description | |
---|---|---|
OrthographicProjection |
Initializes a new instance of the OrthographicProjection class.
|
Name | Description | |
---|---|---|
Clone |
Creates a new Projection that is a clone (deep copy) of the current instance.
(Inherited from Projection.) | |
CloneCore |
Makes the instance a clone (deep copy) of the specified
Projection.
(Overrides ProjectionCloneCore(Projection).) | |
ComputeProjection |
Computes the projection matrix.
(Overrides ProjectionComputeProjection.) | |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the Projection
derived class.
(Overrides ProjectionCreateInstanceCore.) | |
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.) | |
FromMatrix |
Creates an orthographic projection from a 4x4 transformation matrix.
| |
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.
(Inherited from Projection.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Set(Matrix44F) |
Sets the orthographic projection from the given projection matrix.
(Overrides ProjectionSet(Matrix44F).) | |
Set(Single, Single) |
Sets a right-handed, orthographic projection with the specified size.
| |
Set(Single, Single, Single, Single) |
Sets a right-handed, orthographic projection with the specified size and depth.
| |
SetOffCenter(Single, Single, Single, Single) |
Sets a customized (off-center), right-handed, orthographic projection.
| |
SetOffCenter(Single, Single, Single, Single, Single, Single) |
Sets a customized (off-center), right-handed, orthographic projection (including depth).
| |
ToMatrix44F |
Converts a projection to a 4x4 transformation matrix.
(Inherited from Projection.) | |
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.)
(Inherited from Projection.) |
Name | Description | |
---|---|---|
(Matrix44F to OrthographicProjection) |
Converts a 4x4 projection matrix to an orthographic projection.
|
Name | Description | |
---|---|---|
AspectRatio |
Gets the aspect ratio (width / height) of the view.
(Inherited from Projection.) | |
Bottom |
Gets or sets the minimum y-value of the view volume at the near view-plane.
(Inherited from Projection.) | |
Depth | (Inherited from Projection.) | |
Far |
Gets or sets the distance to the far view plane.
(Inherited from Projection.) | |
FieldOfViewX |
Gets the horizontal field of view in radians.
(Inherited from Projection.) | |
FieldOfViewY |
Gets the vertical field of view in radians.
(Inherited from Projection.) | |
Height |
Gets the height of the view volume at the near view plane.
(Inherited from Projection.) | |
Inverse |
Gets the inverse of the projection matrix.
(Inherited from Projection.) | |
Left |
Gets or sets the minimum x-value of the view volume at the near view-plane.
(Inherited from Projection.) | |
Near |
Gets or sets the distance to the near view plane.
(Inherited from Projection.) | |
Right |
Gets or sets the maximum x-value of the view volume at the near view-plane.
(Inherited from Projection.) | |
Top |
Gets or sets the maximum y-value of the view volume at the near view-plane.
(Inherited from Projection.) | |
ViewVolume |
Gets (or sets) the shape of the view volume (viewing frustum).
(Inherited from Projection.) | |
Width |
Gets the width of the view volume at the near view plane.
(Inherited from Projection.) |
The projection can be set in several ways:
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.