Fellow Oak DICOM
Search Results for

    Show / Hide Table of Contents

    Class Point2

    Coordinate in 2D space with integer values

    Inheritance
    System.Object
    Point2
    Implements
    System.IComparable<Point2>
    System.IEquatable<Point2>
    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 Point2 : IComparable<Point2>, IEquatable<Point2>

    Constructors

    Point2()

    Declaration
    public Point2()

    Point2(Int32, Int32)

    Declaration
    public Point2(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y

    Fields

    Origin

    Declaration
    public static readonly Point2 Origin
    Field Value
    Type Description
    Point2

    Properties

    X

    Position on X axis

    Declaration
    public int X { get; set; }
    Property Value
    Type Description
    System.Int32

    Y

    Position on Y axis

    Declaration
    public int Y { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    CompareTo(Point2)

    IComparable interface implementation

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

    Point to compare

    Returns
    Type Description
    System.Int32

    Compare result

    Equals(Point2)

    Declaration
    public bool Equals(Point2 other)
    Parameters
    Type Name Description
    Point2 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()

    ToString()

    Gets a human-readable string representing this Point2 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