# IRdViewProjMatrixSet Interface Reference

Inherits IRsDataObject.

List of all members.

## Public Member Functions
HRESULT | Clear ()
HRESULT | SetMatrices ([in] IRdMatrixf *pInView,[in] IRdMatrixf *pInProj,[in] IRdMatrixf *pInViewProj)
HRESULT | GetViewMatrix ([out] IRdMatrixf **pOutMatrix)
HRESULT | GetProjMatrix ([out] IRdMatrixf **pOutMatrix)
HRESULT | GetViewProjMatrix ([out] IRdMatrixf **pOutMatrix)

## Detailed Description

This data object represents a set of view-projection matrices. It provides backward compatibility with IRdMatrixf interface.

## Member Function Documentation

HRESULT IRdViewProjMatrixSet::Clear | ( |  | ) |

Clear the data object

HRESULT IRdViewProjMatrixSet::SetMatrices | ( | [in] IRdMatrixf * | pInView,
|  | [in] IRdMatrixf * | pInProj,
|  | [in] IRdMatrixf * | pInViewProj |
| ) |  |  |

Set the view, projection and view-projection matrices. All three have to be set!

HRESULT IRdViewProjMatrixSet::GetViewMatrix | ( | [out] IRdMatrixf ** | pOutMatrix | ) |

Get the view matrix

HRESULT IRdViewProjMatrixSet::GetProjMatrix | ( | [out] IRdMatrixf ** | pOutMatrix | ) |

Get the projection matrix.

HRESULT IRdViewProjMatrixSet::GetViewProjMatrix | ( | [out] IRdMatrixf ** | pOutMatrix | ) |

Get the view-projection matrix