Table of Contents

Struct Point

Namespace
NMF.Glsp.Protocol.Types
Assembly
NMF.Glsp.dll

A Point is composed of the (x,y) coordinates of an object.

public readonly record struct Point : IEquatable<Point>
Implements
Inherited Members

Constructors

Point(double, double)

A Point is composed of the (x,y) coordinates of an object.

public Point(double X, double Y)

Parameters

X double

The abscissa of the point.

Y double

The ordinate of the point.

Properties

X

The abscissa of the point.

public double X { get; init; }

Property Value

double

Y

The ordinate of the point.

public double Y { get; init; }

Property Value

double

Operators

operator +(Point, Point)

Calculates the sum of two points

public static Point operator +(Point a, Point b)

Parameters

a Point

the first point

b Point

the second point

Returns

Point

the result

operator -(Point, Point)

Calculates the difference of two points

public static Point operator -(Point a, Point b)

Parameters

a Point

the first point

b Point

the second point

Returns

Point

the result