# TRenderArea Struct Reference

Inheritance diagram for TRenderArea:

List of all members.

## Public Member Functions
| TRenderArea (real w, real h, TBBox2D uvbox)
void | PosToUV (const TMCPoint &inPos, TVector2 &outUV)
void | UVToPos (const TVector2 &inUV, TMCPoint &outPos)
boolean | operator== (const TRenderArea &rhs)
## Public Attributes
TBBox2D | fuv
| camera coordinates
real | fWidth
| width in pixels
real | fHeight
| height in pixels

## Detailed Description

Describes a rendering rectangle (used in I3DRenderHelper)

## Constructor & Destructor Documentation

TRenderArea::TRenderArea | ( | real | w,
|  | real | h,
|  | TBBox2D | uvbox |
| ) |  |  | `[inline]`

## Member Function Documentation

boolean TRenderArea::operator== | ( | const TRenderArea & | rhs | ) | `[inline]`

void TRenderArea::PosToUV | ( | const TMCPoint & | inPos,
|  | TVector2 & | outUV |
| ) |  |  | `[inline]`

Converts a point in pixel coordinates (fWidth, fHeight) into camera coordinates

Note:
  The uv y coordinate varies "oppositely" to the pixel y coord.

Parameters:

  | inPos | point in pixel coordinates
  | outUV | result in camera coordinates

void TRenderArea::UVToPos | ( | const TVector2 & | inUV,
|  | TMCPoint & | outPos |
| ) |  |  | `[inline]`

Converts a point in camera coordinates into pixel coordinates (fWidth, fHeight)

Note:
  The uv y coordinate varies "oppositely" to the pixel y coord.

Parameters:

  | inUV | point in camera coordinates
  | outPos | result in pixel coordinates

## Member Data Documentation

real TRenderArea::fHeight

height in pixels

TBBox2D TRenderArea::fuv

camera coordinates

real TRenderArea::fWidth

width in pixels

The documentation for this struct was generated from the following file:

- RenderTypes.h