# RtCoverageRegion Struct Reference

List of all members.

## Public Member Functions
void | SplitHorizontally (RtCoverageRegion &lowpart, RtDWORD hisize)
void | SplitVertically (RtCoverageRegion &rightpart, RtDWORD leftwidth)
RtBool | Overlap (const RtCoverageRegion &r2)

## Detailed Description

Determines the rectangle on coverage map specified by its position and size

## Member Function Documentation

void RtCoverageRegion::SplitHorizontally | ( | RtCoverageRegion & | lowpart,
|  | RtDWORD | hisize |
| ) |  |  |

Splits the region by dividing it to upper and lower part. Upper part is stored in this instance, lower part is filled into lowpart parameter

Parameters:

  | lowpart | returned lower part of former region
  | hisize | height of higher part

References extent_x, extent_y, x, and y.

void RtCoverageRegion::SplitVertically | ( | RtCoverageRegion & | rightpart,
|  | RtDWORD | leftwidth |
| ) |  |  |

Splits the region by dividing it to left and right part. Left part is stored in this instance, right part is filled into rightart parameter

Parameters:

  | rightpart | returned right part of former region
  | leftwidth | desired witdth of left part

References extent_x, extent_y, x, and y.

RtBool RtCoverageRegion::Overlap | ( | const RtCoverageRegion & | r2 | ) |

Returns true if region overlaps with specified region

References extent_x, extent_y, x, and y.