Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class Point2D

    Coordinate in 2D space with floating point values

    Inheritance
    System.Object
    Point2D
    Implements
    System.IComparable<Point2D>
    System.IEquatable<Point2D>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: FellowOakDicom.Imaging.Mathematics
    Assembly: fo-dicom.core.dll
    Syntax
    public class Point2D : IComparable<Point2D>, IEquatable<Point2D>

    Constructors

    Point2D()

    Declaration
    public Point2D()

    Point2D(Double, Double)

    Declaration
    public Point2D(double x, double y)
    Parameters
    Type Name Description
    System.Double x
    System.Double y

    Fields

    Origin

    Declaration
    public static readonly Point2D Origin
    Field Value
    Type Description
    Point2D

    Properties

    X

    Position on X axis

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    System.Double

    Y

    Position on Y axis

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    CompareTo(Point2D)

    IComparable interface implementation

    Declaration
    public int CompareTo(Point2D other)
    Parameters
    Type Name Description
    Point2D other

    Point to compare

    Returns
    Type Description
    System.Int32

    Compare result

    Equals(Point2D)

    Declaration
    public bool Equals(Point2D other)
    Parameters
    Type Name Description
    Point2D other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    Round()

    Declaration
    public Point2 Round()
    Returns
    Type Description
    Point2

    ToString()

    Gets a human-readable string representing this Point2D object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String representation

    Overrides
    System.Object.ToString()

    Implements

    System.IComparable<T>
    System.IEquatable<T>

    Extension Methods

    LinqExtensions.IsOneOf<T>(T, T[])
    In This Article
    Back to top Copyright (c) 2012-2025 fo-dicom contributors