Table of Contents

Class Point<T>

Namespace
Whim
Assembly
Whim.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public record Point<T> : IPoint<T>, IEquatable<Point<T>> where T : INumber<T>

Type Parameters

T
Inheritance
Point<T>
Implements
Inherited Members

Constructors

Point()

Creates a point with the X and Y values set to 0.
public Point()

Point(IPoint<T>)

Creates a new copy of point.
public Point(IPoint<T> point)

Parameters

point IPoint<T>

Point(T, T)

Creates a point with the given x and y values.
public Point(T x, T y)

Parameters

x T
y T

Properties

X

The x-coordinate of the left of the item.
public T X { get; set; }

Property Value

T

Y

The y-coordinate of the top of the item.
public T Y { get; set; }

Property Value

T

Methods

ToString()

Returns a string that represents the current object.
public override string ToString()

Returns

string
A string that represents the current object.