# Coordinates

## `canvas2Cartesian()`

```typescript
canvas2Cartesian: ({ x, y }: Vector, center: Vector) => Vector;
```

## `cartesian2Canvas()`

```typescript
export declare const cartesian2Canvas: ({ x, y }: Vector, center: Vector) => Vector;
```

## `cartesian2Polar()`

```typescript
export declare const cartesian2Polar: ({ x, y }: Vector, center: Vector) => { radius: number, theta: number };
```

## `polar2Cartesian()`

```typescript
export declare const polar2Cartesian: ({ theta, radius }: PolarPoint) => Vector;
```

## `polar2Canvas()`

```typescript
export declare const polar2Canvas: ({ theta, radius }: PolarPoint, center: Vector) => Vector;
```

## `canvas2Polar()`

```typescript
export declare const canvas2Polar: ({ x, y }: Vector, center: Vector) => {
    theta: number;
    radius: number;
};
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wcandillon.gitbook.io/redash/coordinates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
