XY Structure

Represents a two-dimensional point.

Definition

Namespace: Meta.Numerics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public readonly struct XY : IEquatable<XY>
Inheritance
Object    ValueType    XY
Implements
IEquatableXY

Constructors

XY Initializes a new point with the given coordinates.

Properties

X Gets the X-coordinate of the point.
Y Gets the Y-coordinate of the point.

Methods

Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Equals(XY) Determines whether the given point is the same.
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)

Operators

Equality(XY, XY) Determines whether two points are equal.
(TupleDouble, Double to XY) Converts a two-tuple into a point.
(XY to TupleDouble, Double) Converts a point into a two-tuple.
Inequality(XY, XY) Determines whether two points are unequal.

See Also