Show / Hide Table of Contents

    Struct Point

    Represents an integer point in 2D space.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public struct Point

    Constructors

    | Improve this Doc View Source

    Point(Int32, Int32)

    Initializes a new instance of the Point struct.

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

    The x coordinate.

    System.Int32 y

    The y coordinate.

    Fields

    | Improve this Doc View Source

    Empty

    Declaration
    public static Point Empty
    Field Value
    Type Description
    Point

    Properties

    | Improve this Doc View Source

    X

    Gets the x coordinate.

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

    The x.

    | Improve this Doc View Source

    Y

    Gets the y coordinate.

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

    The y.

    Methods

    | Improve this Doc View Source

    Deconstruct(out Int32, out Int32)

    Declaration
    public void Deconstruct(out int x, out int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    | Improve this Doc View Source

    ToString()

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

    Operators

    | Improve this Doc View Source

    Implicit((Int32 x, Int32 y) to Point)

    Declaration
    public static implicit operator Point((int x, int y) point)
    Parameters
    Type Name Description
    System.ValueTuple<System.Int32, System.Int32> point
    Returns
    Type Description
    Point
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX