Struct JointMovementInfo
Serializable representation of the joint movement info describing a single particle's movement.
Namespace: AS2.Sim
Assembly: .dll
Syntax
[Serializable]
public struct JointMovementInfo
Constructors
| Edit this page View SourceJointMovementInfo(Vector2Int, Vector2Int, ActionType)
Declaration
public JointMovementInfo(Vector2Int jmOffset, Vector2Int movementOffset, ActionType movementAction)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | jmOffset | |
Vector2Int | movementOffset | |
ActionType | movementAction |
Fields
| Edit this page View SourceEmpty
An empty record specifying no movement at all.
Declaration
public static JointMovementInfo Empty
Field Value
Type | Description |
---|---|
JointMovementInfo |
jmOffset
The global movement of the particle's stationary part.
Declaration
public Vector2Int jmOffset
Field Value
Type | Description |
---|---|
Vector2Int |
movementAction
The type of movement performed by the particle.
Declaration
public ActionType movementAction
Field Value
Type | Description |
---|---|
ActionType |
movementOffset
The local offset the particle's own movement (expansion or contraction) applies to neighbors bonded to its moving part.
Declaration
public Vector2Int movementOffset
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 ==(JointMovementInfo, JointMovementInfo)
Declaration
public static bool operator ==(JointMovementInfo i1, JointMovementInfo i2)
Parameters
Type | Name | Description |
---|---|---|
JointMovementInfo | i1 | |
JointMovementInfo | i2 |
Returns
Type | Description |
---|---|
bool |
operator !=(JointMovementInfo, JointMovementInfo)
Declaration
public static bool operator !=(JointMovementInfo i1, JointMovementInfo i2)
Parameters
Type | Name | Description |
---|---|---|
JointMovementInfo | i1 | |
JointMovementInfo | i2 |
Returns
Type | Description |
---|---|
bool |