Search Results for

    Show / Hide Table of Contents

    Struct ParticleGraphicsAdapterImpl.PositionSnap

    A snap of a position that is used to determine the current state of the particle.

    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public struct ParticleGraphicsAdapterImpl.PositionSnap

    Constructors

    | Edit this page View Source

    PositionSnap(Vector2Int, Vector2Int, bool, int, bool, ParticleMovement, ParticleJointMovementState, float)

    Declaration
    public PositionSnap(Vector2Int p1, Vector2Int p2, bool isExpanded, int globalExpansionOrContractionDir, bool noAnimation, ParticleGraphicsAdapterImpl.ParticleMovement movement, ParticleJointMovementState jointMovementState, float timestamp)
    Parameters
    Type Name Description
    Vector2Int p1
    Vector2Int p2
    bool isExpanded
    int globalExpansionOrContractionDir
    bool noAnimation
    ParticleGraphicsAdapterImpl.ParticleMovement movement
    ParticleJointMovementState jointMovementState
    float timestamp

    Fields

    | Edit this page View Source

    globalExpansionOrContractionDir

    Declaration
    public int globalExpansionOrContractionDir
    Field Value
    Type Description
    int
    | Edit this page View Source

    isExpanded

    Declaration
    public bool isExpanded
    Field Value
    Type Description
    bool
    | Edit this page View Source

    jointMovementState

    Declaration
    public ParticleJointMovementState jointMovementState
    Field Value
    Type Description
    ParticleJointMovementState
    | Edit this page View Source

    movement

    Declaration
    public ParticleGraphicsAdapterImpl.ParticleMovement movement
    Field Value
    Type Description
    ParticleGraphicsAdapterImpl.ParticleMovement
    | Edit this page View Source

    noAnimation

    Declaration
    public bool noAnimation
    Field Value
    Type Description
    bool
    | Edit this page View Source

    position1

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

    position2

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

    timestamp

    Declaration
    public float timestamp
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object s)
    Parameters
    Type Name Description
    object s
    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()

    Dummy value to avoid warnings. Please do not use!

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    System.ValueType.GetHashCode()
    | Edit this page View Source

    IsPositionEqual(PositionSnap, PositionSnap)

    Compares the positions and expansion states of the two given snapshots.

    Declaration
    public static bool IsPositionEqual(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
    Parameters
    Type Name Description
    ParticleGraphicsAdapterImpl.PositionSnap s1

    The first snapshot to compare.

    ParticleGraphicsAdapterImpl.PositionSnap s2

    The second snapshot to compare.

    Returns
    Type Description
    bool

    true if and only if the position and expansion state of the two given snapshots are equal. Note that if the snapshots are contracted, their tail positions might still differ.

    | Edit this page View Source

    ToString()

    Dummy value to avoid warnings. Please do not use!

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    System.ValueType.ToString()

    Operators

    | Edit this page View Source

    operator ==(PositionSnap, PositionSnap)

    Declaration
    public static bool operator ==(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
    Parameters
    Type Name Description
    ParticleGraphicsAdapterImpl.PositionSnap s1
    ParticleGraphicsAdapterImpl.PositionSnap s2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(PositionSnap, PositionSnap)

    Declaration
    public static bool operator !=(ParticleGraphicsAdapterImpl.PositionSnap s1, ParticleGraphicsAdapterImpl.PositionSnap s2)
    Parameters
    Type Name Description
    ParticleGraphicsAdapterImpl.PositionSnap s1
    ParticleGraphicsAdapterImpl.PositionSnap s2
    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