Class ReadOnlyLocation
A 2D location that is read only
Namespace: Scripting
Syntax
public class ReadOnlyLocation : IReadable2DLocation, IEquatable<IReadable2DLocation>
Properties
X
Get the X value for this location
Declaration
public double X { get; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Get the Y value for this location
Declaration
public double Y { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Equals(IReadable2DLocation)
Is this location equal to another
Declaration
public bool Equals(IReadable2DLocation rhs)
Parameters
Type | Name | Description |
---|---|---|
IReadable2DLocation | rhs | location to compare to |
Returns
Type | Description |
---|---|
System.Boolean | true if this and rhs are equal |
Equals(Object)
Is this location equal to another
Declaration
public override bool Equals(object rhs)
Parameters
Type | Name | Description |
---|---|---|
System.Object | rhs | location to compare to |
Returns
Type | Description |
---|---|
System.Boolean | true if this and rhs are equal |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Get the hash code for this object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>