# MapCelListToCRect

Maps a list of cels to a CRect.

### Synopsis

`void MapCelListToCRect (CCB *list, CRect *rect)`

### Description

This function maps a list of cels to the specified rectangle. It is much faster than a standard `MapCel()` call because it only has to calculate a simple rectangular projection. It performs a `MapCelToCRect()` on the first cel in the list. It then adjusts the X/Y coordinates of the rest of the cels in the list such that all the cels maintain the same relative X/Y relationships to each other. It also copies the size and perspective fields from the first cel into all the rest of the cels in the list. The net effect is that the list of cels moves and scales as if it were a single unit.

### Arguments

list
  Pointer to a list of one or more cels to be mapped.

rect
  Pointer to the CRect to which the cels are to be mapped.

### Implementation

Library call implemented in lib3do.lib.

### Associated Files

lib3do.lib, celutils.h

### See Also

``MapAACelToCRect`, MapCelToCRect`