Table of Contents

Class Point2

Namespace
FellowOakDicom.Imaging.Mathematics
Assembly
fo-dicom.core.dll

Coordinate in 2D space with integer values

public class Point2 : IComparable<Point2>, IEquatable<Point2>
Inheritance
Point2
Implements
Inherited Members
Extension Methods

Constructors

Point2()

public Point2()

Point2(int, int)

public Point2(int x, int y)

Parameters

x int
y int

Fields

Origin

public static readonly Point2 Origin

Field Value

Point2

Properties

X

Position on X axis

public int X { get; set; }

Property Value

int

Y

Position on Y axis

public int Y { get; set; }

Property Value

int

Methods

CompareTo(Point2)

IComparable interface implementation

public int CompareTo(Point2 other)

Parameters

other Point2

Point to compare

Returns

int

Compare result

Equals(Point2)

public bool Equals(Point2 other)

Parameters

other Point2

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Gets a human-readable string representing this Point2 object.

public override string ToString()

Returns

string

String representation