Class Point2D
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
Coordinate in 2D space with floating point values
public class Point2D : IComparable<Point2D>, IEquatable<Point2D>
- Inheritance
-
Point2D
- Implements
- Inherited Members
- Extension Methods
Constructors
Point2D()
public Point2D()
Point2D(double, double)
public Point2D(double x, double y)
Parameters
Fields
Origin
public static readonly Point2D Origin
Field Value
Properties
X
Position on X axis
public double X { get; set; }
Property Value
Y
Position on Y axis
public double Y { get; set; }
Property Value
Methods
CompareTo(Point2D)
IComparable interface implementation
public int CompareTo(Point2D other)
Parameters
other
Point2DPoint to compare
Returns
- int
Compare result
Equals(Point2D)
public bool Equals(Point2D other)
Parameters
other
Point2D
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Round()
public Point2 Round()
Returns
ToString()
Gets a human-readable string representing this Point2D object.
public override string ToString()
Returns
- string
String representation