Table of Contents

Class Point

Namespace
Geotab.Drawing
Assembly
Geotab.Checkmate.ObjectModel.dll

Point with an X and Y position.

public class Point
Inheritance
Point
Inherited Members

Constructors

Point(double, double)

Initializes a new instance of the Point class.

public Point(double x, double y)

Parameters

x double

The x.

y double

The y.

Fields

Empty

The empty point.

public static readonly Point Empty

Field Value

Point

Properties

X

Gets the X coordinate.

public double X { get; }

Property Value

double

The x value.

Y

Gets the Y coordinate.

public double Y { get; }

Property Value

double

The y value.

Methods

Equals(object?)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

IsEmpty()

Determines whether this point is an empty point.

public bool IsEmpty()

Returns

bool

If the point is empty.

Offset(double, double)

Create a new point that's an offset from this point.

public Point Offset(double dx, double dy)

Parameters

dx double

The dx.

dy double

The dy.

Returns

Point

The offset point.