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 SourcePoint(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 SourceEmpty
Declaration
public static Point Empty
Field Value
Type | Description |
---|---|
Point |
Properties
| Improve this Doc View SourceX
Gets the x coordinate.
Declaration
public int X { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The x. |
Y
Gets the y coordinate.
Declaration
public int Y { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The y. |
Methods
| Improve this Doc View SourceDeconstruct(out Int32, out Int32)
Declaration
public void Deconstruct(out int x, out int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
Operators
| Improve this Doc View SourceImplicit((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 |