Class Point2
Assembly: cs.temp.dll.dll
Syntax
public class Point2 : IComparable<Point2>, IEquatable<Point2>
Constructors
Point2()
Declaration
Point2(Int32, Int32)
Declaration
public Point2(int x, int y)
Parameters
Fields
Origin
Declaration
public static readonly Point2 Origin
Field Value
Properties
X
Declaration
public int X { get; set; }
Property Value
Y
Declaration
public int Y { get; set; }
Property Value
Methods
CompareTo(Point2)
IComparable interface implementation
Declaration
public int CompareTo(Point2 other)
Parameters
Type |
Name |
Description |
Point2 |
other |
Point to compare
|
Returns
Type |
Description |
Int32 |
Compare result
|
Equals(Point2)
Declaration
public bool Equals(Point2 other)
Parameters
Type |
Name |
Description |
Point2 |
other |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Gets a human-readable string representing this Point2 object.
Declaration
public override string ToString()
Returns
Type |
Description |
String |
String representation
|
Overrides
Implements