---
id: "T:cAlgo.API.Point"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/"
---

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

# Point (class)

Represents an x- and y-coordinate pair in two-dimensional space.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public class Point
```

## Examples

C#:

```csharp
var triangle = new Polygon
{
    FillColor = Color.FromArgb(120, Color.Green),
    Points = new[] { new Point(0, 60), new Point(40, 0), new Point(80, 60) }
};
Chart.AddControl(triangle);
Print("First vertex: {0}, {1}", triangle.Points[0].X, triangle.Points[0].Y);
```

Python:

```python
triangle = Polygon()
triangle.FillColor = Color.FromArgb(120, Color.Green)
triangle.Points = [Point(0, 60), Point(40, 0), Point(80, 60)]
api.Chart.AddControl(triangle)
api.Print(f"First vertex: {triangle.Points[0].X}, {triangle.Points[0].Y}")
```

## Constructors

- `public Point(double x, double y)` — Initializes a new instance of the Point class. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/Constructor/index.md)

## Properties

- `public double X {get;}` — Gets or sets the x-coordinate of this Point. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/X/index.md)
- `public double Y {get;}` — Gets or sets the y-coordinate of this Point. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Point/Y/index.md)

