Search Results for

    Show / Hide Table of Contents

    Class SmartMaterialInitializer

    Inheritance
    object
    InitializationMethod
    SmartMaterialInitializer
    Namespace: AS2.Algos.SmartMaterial
    Assembly: .dll
    Syntax
    public class SmartMaterialInitializer : InitializationMethod

    Constructors

    | Edit this page View Source

    SmartMaterialInitializer(ParticleSystem)

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

    Methods

    | Edit this page View Source

    Generate(int, int, int, bool)

    Declaration
    public void Generate(int scale = 2, int rows = 2, int cols = 2, bool hexagonShape = false)
    Parameters
    Type Name Description
    int scale
    int rows
    int cols
    bool hexagonShape
    | Edit this page View Source

    GetNeighborHexPos(Vector2Int, Direction, int, int)

    Declaration
    private Vector2Int GetNeighborHexPos(Vector2Int pos, Direction direction, int scale, int distance = 1)
    Parameters
    Type Name Description
    Vector2Int pos
    Direction direction
    int scale
    int distance
    Returns
    Type Description
    Vector2Int
    | Edit this page View Source

    PlaceHexagon(Vector2Int, int, bool)

    Declaration
    private void PlaceHexagon(Vector2Int position, int scale, bool type2 = false)
    Parameters
    Type Name Description
    Vector2Int position
    int scale
    bool type2
    | Edit this page View Source

    PlaceHexagonShape(int, int)

    Declaration
    private void PlaceHexagonShape(int scale, int size)
    Parameters
    Type Name Description
    int scale
    int size
    | Edit this page View Source

    PlaceParallelogram(int, int, int)

    Declaration
    private void PlaceParallelogram(int scale, int rows, int cols)
    Parameters
    Type Name Description
    int scale
    int rows
    int cols
    • 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