Next: Vectors, Previous: Strings [Contents][Index]

## 2 Objects

### 2.1 Points

Points are stored using an implicit Cartesian coordinate system.

#### Point related functions

`point(x, y)`

  Point of Cartesian coordinates (x, y).

`point(r, a)`

  Point of polar coordinates (r, a).

`abscissa(A)`

  Abscissa of point A.

`ordinate(A)`

  Ordinate of point A.

`distance(A, B)`

  Distance between point A and point B.

`barycenter(list)`

  Barycenter of a set of weighted points. In the given list, each point has to be followed by its weight.

Example: `barycenter(A, 1, B, 3, C, 2)`.