---
name: "CL_Rectangle"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_Rectangle"
---

# CL\_Rectangle(3)

## NAME

CL\_Rectangle

## CLASS MEMBERS

- float **x1, y1, x2, y2**

  - **CL\_Rectangle**(

  ```
  float _x1,
  float _y1,
  float _x2,
  float _y2)
  ```

- **CL\_Rectangle**(

  ```
  float *xvals,
  float *yvals,
  int num_vals_x,
  int num_vals_y,
  int xstride,
  int ystride)
  ```

- **CL\_Rectangle**()

  - void **set\_x1**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

- void **set\_y1**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

- void **set\_x2**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

- void **set\_y2**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

- bool **get\_intersection**(

  ```
  const CL_Rectangle &rect,
  CL_Rectangle *res)
  ```

- void **limit\_region**(

  ```
  const CL_Rectangle &r)
  ```

## MEMBERS WITH DESCRIPTIONS

- float **x1, y1, x2, y2**

  ```
  Description:
  ```

- **CL\_Rectangle**(

  ```
  float _x1,
  float _y1,
  float _x2,
  float _y2)
  ```

  ```
  Description:
  ```

- **CL\_Rectangle**(

  ```
  float *xvals,
  float *yvals,
  int num_vals_x,
  int num_vals_y,
  int xstride,
  int ystride)
  ```

  ```
  Description:
  ```

- **CL\_Rectangle**()

  ```
  Description:
  ```

- void **set\_x1**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

  ```
  Description:
  ```

- void **set\_y1**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

  ```
  Description:
  ```

- void **set\_x2**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

  ```
  Description:
  ```

- void **set\_y2**(

  ```
  float *vals,
  int num_vals=1,
  int stride=1)
  ```

  ```
  Description:
  ```

- bool **get\_intersection**(

  ```
  const CL_Rectangle &rect,
  CL_Rectangle *res)
  ```

  ```
  Description:
  ```

- void **limit\_region**(

  ```
  const CL_Rectangle &r)
  ```

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
