Search Results for

    Show / Hide Table of Contents

    Struct ParticleBondGraphicState

    Contains the visual information for a single bond for a single round.

    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public struct ParticleBondGraphicState

    Constructors

    | Edit this page View Source

    ParticleBondGraphicState(Vector2Int, Vector2Int, Vector2Int, Vector2Int, bool)

    Declaration
    public ParticleBondGraphicState(Vector2Int curBondPos1, Vector2Int curBondPos2, Vector2Int prevBondPos1, Vector2Int prevBondPos2, bool hidden = false)
    Parameters
    Type Name Description
    Vector2Int curBondPos1
    Vector2Int curBondPos2
    Vector2Int prevBondPos1
    Vector2Int prevBondPos2
    bool hidden

    Fields

    | Edit this page View Source

    curBondPos1

    First endpoint of the bond after the animation.

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

    curBondPos2

    Second endpoint of the bond after the animation.

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

    hidden

    Flag indicating whether the bond should be hidden.

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

    prevBondPos1

    First endpoint of the bond before the animation.

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

    prevBondPos2

    Second endpoint of the bond before the animation.

    Declaration
    public Vector2Int prevBondPos2
    Field Value
    Type Description
    Vector2Int

    Methods

    | Edit this page View Source

    IsAnimated()

    The bond is animated if previous and current positions differ.

    Declaration
    public bool IsAnimated()
    Returns
    Type Description
    bool

    true if and only if the the previous and current bond positions are not the same.

    • 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