Search Results for

    Show / Hide Table of Contents

    Struct Coordinate

    Coordinate struct

    Namespace: Terminaux.Base.Structures
    Assembly: Terminaux.dll
    Syntax
    public struct Coordinate

    Constructors

    | Edit this page View Source

    Coordinate(int, int)

    Makes a new coordinate instance

    Declaration
    public Coordinate(int x, int y)
    Parameters
    Type Name Description
    int x

    A zero-based X coordinate

    int y

    A zero-based Y coordinate

    Properties

    | Edit this page View Source

    X

    Gets the X position

    Declaration
    public readonly int X { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Y

    Gets the Y position

    Declaration
    public readonly int Y { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    System.ValueType.Equals(object)
    | Edit this page View Source

    Equals(Coordinate)

    Declaration
    public bool Equals(Coordinate other)
    Parameters
    Type Name Description
    Coordinate other
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    System.ValueType.GetHashCode()
    | Edit this page View Source

    ToString()

    Generates a string containing positions

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    X and Y coordinates in a string

    Overrides
    System.ValueType.ToString()

    Operators

    | Edit this page View Source

    operator ==(Coordinate, Coordinate)

    Declaration
    public static bool operator ==(Coordinate left, Coordinate right)
    Parameters
    Type Name Description
    Coordinate left
    Coordinate right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(Coordinate, Coordinate)

    Declaration
    public static bool operator !=(Coordinate left, Coordinate right)
    Parameters
    Type Name Description
    Coordinate left
    Coordinate right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX