Search Results for

    Show / Hide Table of Contents

    Class ShearTestInitializer

    Inheritance
    object
    InitializationMethod
    ShearTestInitializer
    Namespace: AS2.Algos.SuboracleTest
    Assembly: .dll
    Syntax
    public class ShearTestInitializer : InitializationMethod

    Constructors

    | Edit this page View Source

    ShearTestInitializer(ParticleSystem)

    Declaration
    public ShearTestInitializer(ParticleSystem system)
    Parameters
    Type Name Description
    ParticleSystem system

    Methods

    | Edit this page View Source

    Generate(int, Direction, bool, int)

    Declaration
    public void Generate(int numParticles = 5, Direction mainDir = Direction.NONE, bool clockwise = true, int count = 1)
    Parameters
    Type Name Description
    int numParticles
    Direction mainDir
    bool clockwise
    int count
    | Edit this page View Source

    GenerateLine(Vector2Int, Direction, int)

    Generates a straight line of length length starting at startPos in direction dir.

    Declaration
    private List<Vector2Int> GenerateLine(Vector2Int startPos, Direction dir, int length)
    Parameters
    Type Name Description
    Vector2Int startPos

    The starting position of the line.

    Direction dir

    The direction of the line.

    int length

    The number of particles in the line.

    Returns
    Type Description
    List<Vector2Int>

    A list of positions forming the line.

    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.12
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX