Show / Hide Table of Contents

    Struct Point

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The Point is a struct that defines the 2D point as a pair of generic type.

    public struct Point : IEquatable<Point>
    Implements
    IEquatable<Point>

    Fields

    View Source

    X

    Location along the horizontal axis.

    Declaration
    public int X
    Field Value
    Type Description
    Int32
    API Level: preview
    View Source

    Y

    Location along the vertical axis.

    Declaration
    public int Y
    Field Value
    Type Description
    Int32
    API Level: preview

    Methods

    View Source

    Equals(Point)

    Indicates whether this instance and a Point object are equal.

    Declaration
    public bool Equals(Point other)
    Parameters
    Type Name Description
    Point other

    The Point to compare with the current instance.

    Returns
    Type Description
    Boolean

    true if the object and this instance are the same type and represent the same value, otherwise false.

    API Level: preview
    View Source

    Equals(Object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with the current instance.

    Returns
    Type Description
    Boolean

    true if the object and this instance are of the same type and represent the same value, otherwise false.

    Overrides
    ValueType.Equals(Object)
    API Level: preview
    View Source

    GetHashCode()

    Gets the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code.

    Overrides
    ValueType.GetHashCode()
    API Level: preview
    View Source

    ToString()

    A human readable representation of Point.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    The string is formatted as "{{X={0} Y={1}}}".

    Overrides
    ValueType.ToString()
    API Level: preview

    Operators

    View Source

    Equality(Point, Point)

    Whether both Points are equal.

    Declaration
    public static bool operator ==(Point p1, Point p2)
    Parameters
    Type Name Description
    Point p1

    A Point on the left hand side.

    Point p2

    A Point on the right hand side.

    Returns
    Type Description
    Boolean

    True if both Points have equal values.

    API Level: preview
    View Source

    Inequality(Point, Point)

    Whether both Points are not equal.

    Declaration
    public static bool operator !=(Point p1, Point p2)
    Parameters
    Type Name Description
    Point p1

    A Point on the left hand side.

    Point p2

    A Point on the right hand side.

    Returns
    Type Description
    Boolean

    True if both Points do not have equal values.

    API Level: preview

    Implements

    System.IEquatable<T>
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX