Point constructor
constructor · Point · cAlgo.API
DesktopCLICloud
Initializes a new instance of the Point class.
Definition
public Point(double x, double y)
Point(x: float, y: float)
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
x | double | float | |
y | double | float |
Examples
var point = new Point(100, 50);
var polyline = new Polyline { StrokeColor = Color.Orange, Points = new[] { new Point(0, 0), point } };
Chart.AddControl(polyline);
point = Point(100, 50)
polyline = Polyline()
polyline.StrokeColor = Color.Orange
polyline.Points = [Point(0, 0), point]
api.Chart.AddControl(polyline)