Search Results for

    Show / Hide Table of Contents

    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 Source

    JointMovementInfo(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 Source

    Empty

    An empty record specifying no movement at all.

    Declaration
    public static JointMovementInfo Empty
    Field Value
    Type Description
    JointMovementInfo
    | Edit this page View Source

    jmOffset

    The global movement of the particle's stationary part.

    Declaration
    public Vector2Int jmOffset
    Field Value
    Type Description
    Vector2Int
    | Edit this page View Source

    movementAction

    The type of movement performed by the particle.

    Declaration
    public ActionType movementAction
    Field Value
    Type Description
    ActionType
    | Edit this page View Source

    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 Source

    Equals(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 obj and this instance are the same type and represent the same value; otherwise, false.

    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 Source

    operator ==(JointMovementInfo, JointMovementInfo)

    Declaration
    public static bool operator ==(JointMovementInfo i1, JointMovementInfo i2)
    Parameters
    Type Name Description
    JointMovementInfo i1
    JointMovementInfo i2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(JointMovementInfo, JointMovementInfo)

    Declaration
    public static bool operator !=(JointMovementInfo i1, JointMovementInfo i2)
    Parameters
    Type Name Description
    JointMovementInfo i1
    JointMovementInfo i2
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX