Class Location
Location class
Namespace: Scripting
Syntax
public class Location : I2DLocation, IReadable2DLocation, IEquatable<IReadable2DLocation>
Constructors
Location(Double, Double)
Constructor
Declaration
public Location(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x value |
System.Double | y | The y value |
Fields
point
Declaration
protected readonly Wolverine.DataModel.GhPoint point
Field Value
Type | Description |
---|---|
GH.Wolverine.DataModel.GhPoint |
Properties
X
Get or set the location X value
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Get or set the location Y value
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Equals(IReadable2DLocation)
Test equality
Declaration
public bool Equals(IReadable2DLocation Rhs)
Parameters
Type | Name | Description |
---|---|---|
IReadable2DLocation | Rhs | A location to compare |
Returns
Type | Description |
---|---|
System.Boolean | True if x and y are equal |
Equals(Object)
Test equality
Declaration
public override bool Equals(object Rhs)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Rhs | A location to compare |
Returns
Type | Description |
---|---|
System.Boolean | True if x and y are equal |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Get the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>