---
id: "M:cAlgo.API.Point.#ctor(System.Double,System.Double)"
kind: "constructor"
type: "T:cAlgo.API.Point"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/Constructor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Point constructor

Member of [Point](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/index.md).

## Point(double x, double y)

Initializes a new instance of the [`Point`](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/index.md) class.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public Point(double x, double y)
```

Python:

```python
Point(x: float, y: float)
```

### Parameters

- `x` (`double`, Python `float`): 
- `y` (`double`, Python `float`):

### Examples

C#:

```csharp
var point = new Point(100, 50);
var polyline = new Polyline { StrokeColor = Color.Orange, Points = new[] { new Point(0, 0), point } };
Chart.AddControl(polyline);
```

Python:

```python
point = Point(100, 50)
polyline = Polyline()
polyline.StrokeColor = Color.Orange
polyline.Points = [Point(0, 0), point]
api.Chart.AddControl(polyline)
```

