Search Results for

    Show / Hide Table of Contents

    Enum Direction

    Constants for the 6 cardinal directions as well as the 6 directions perpendicular to them. The directions are numbered 0,...,11 with direction E being 0 and direction values increasing in counter-clockwise direction.

    The NONE value represents no direction. If it is used in any calculation, the result is undefined.

    See DirectionHelpers for additional helper functions.

    Namespace: AS2
    Assembly: .dll
    Syntax
    public enum Direction

    Fields

    Name Description
    E
    ENE
    ESE
    N
    NNE
    NNW
    NONE
    S
    SSE
    SSW
    W
    WNW
    WSW

    Extension Methods

    DirectionHelpers.AddTo(Direction, Direction, bool)
    DirectionHelpers.DistanceTo(Direction, Direction, bool)
    DirectionHelpers.IsCardinal(Direction)
    DirectionHelpers.IsSecondary(Direction)
    DirectionHelpers.Opposite(Direction)
    DirectionHelpers.Rotate30(Direction, int)
    DirectionHelpers.Rotate60(Direction, int)
    DirectionHelpers.Subtract(Direction, Direction, bool)
    DirectionHelpers.ToInt(Direction)
    • 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