Struct BondMovementInfo
Serializable representation of a single bond movement. Describes the two locations of a bond before and after a movement round. Also contains some graphical info.
Namespace: AS2.Sim
Assembly: .dll
Syntax
[Serializable]
public struct BondMovementInfo
Constructors
| Edit this page View SourceBondMovementInfo(Vector2Int, Vector2Int, Vector2Int, Vector2Int, bool)
Declaration
public BondMovementInfo(Vector2Int start1, Vector2Int end1, Vector2Int start2, Vector2Int end2, bool hidden = false)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | start1 | |
Vector2Int | end1 | |
Vector2Int | start2 | |
Vector2Int | end2 | |
bool | hidden |
Fields
| Edit this page View SourceEmpty
A movement info in which all positions are (0,0)
.
Declaration
public static BondMovementInfo Empty
Field Value
Type | Description |
---|---|
BondMovementInfo |
end1
The bond's end location before the movement.
Declaration
public Vector2Int end1
Field Value
Type | Description |
---|---|
Vector2Int |
end2
The bond's end location after the movement.
Declaration
public Vector2Int end2
Field Value
Type | Description |
---|---|
Vector2Int |
hidden
Whether the bond should be hidden.
Declaration
public bool hidden
Field Value
Type | Description |
---|---|
bool |
start1
The bond's start location before the movement.
Declaration
public Vector2Int start1
Field Value
Type | Description |
---|---|
Vector2Int |
start2
The bond's start location after the movement.
Declaration
public Vector2Int start2
Field Value
Type | Description |
---|---|
Vector2Int |
Methods
| Edit this page View SourceEquals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
System.ValueType.Equals(object)
|
Edit this page
View Source
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
System.ValueType.GetHashCode()
Operators
| Edit this page View Sourceoperator ==(BondMovementInfo, BondMovementInfo)
Declaration
public static bool operator ==(BondMovementInfo i1, BondMovementInfo i2)
Parameters
Type | Name | Description |
---|---|---|
BondMovementInfo | i1 | |
BondMovementInfo | i2 |
Returns
Type | Description |
---|---|
bool |
operator !=(BondMovementInfo, BondMovementInfo)
Declaration
public static bool operator !=(BondMovementInfo i1, BondMovementInfo i2)
Parameters
Type | Name | Description |
---|---|---|
BondMovementInfo | i1 | |
BondMovementInfo | i2 |
Returns
Type | Description |
---|---|
bool |