Point
class cAlgo.API
DesktopCLICloud
Represents an x- and y-coordinate pair in two-dimensional space.
Definition
public class Point
Namespace: cAlgo.API · Group: Shapes
Examples
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);
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
Properties
| Name | Description |
|---|---|
XDesktopCLIClouddouble | Gets or sets the x-coordinate of this Point. |
YDesktopCLIClouddouble | Gets or sets the y-coordinate of this Point. |