# polarToCartesian Type documentation

## TypeScript declaration

### [polarToCartesian](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L22-L28>)

**Kind:** function

```
import { polarToCartesian } from '@siemens/native-charts-ng/utils';
```

Converts a polar coordinate to a cartesian

Returns: cartesian coordinate

```
Coordinate
```

```
polarToCartesian(center: Coordinate, radius: number, angleDeg: number): Coordinate
```

Converts a polar coordinate to a cartesian

Returns: cartesian coordinate

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [center](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L22-L22>) | `Coordinate` |  | • Center point of circle in cartesian coordinate |
| [radius](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L22-L22>) | `number` |  | • Radius of circle |
| [angleDeg](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L22-L22>) | `number` |  | • Angle in degrees |

**Returns:** [Coordinate](<index.html#t:Coordinate>)

### Types Documentation

### [Coordinate](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L10-L13>)

**Kind:** interface

```
import type { Coordinate } from '@siemens/native-charts-ng/utils';
```

Cartesian coordinate

```
interface Coordinate
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [x](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L11-L11>) | `number` |  |
| [y](<https://github.com/siemens/element/blob/main/projects/native-charts-ng/utils/svg-math.ts#L12-L12>) | `number` |  |
