Search Results for

    Show / Hide Table of Contents

    Struct Polar2DCoordinate

    A polar coordinate that can be used to define positions relative to the center of a circle/quad.

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

    Constructors

    | Edit this page View Source

    Polar2DCoordinate(float, float, bool)

    Declaration
    public Polar2DCoordinate(float angleDegrees, float radiusPercentage, bool isValid = true)
    Parameters
    Type Name Description
    float angleDegrees
    float radiusPercentage
    bool isValid

    Fields

    | Edit this page View Source

    angleDegrees

    The angle of the coordinate. For most cases 0 is straight upwards.

    Declaration
    public float angleDegrees
    Field Value
    Type Description
    float
    | Edit this page View Source

    isValid

    Declaration
    private bool isValid
    Field Value
    Type Description
    bool
    | Edit this page View Source

    radiusPercentage

    The radius of the coordinate. Max: 1.0f (outer border), min 0.0f (center).

    Declaration
    public float radiusPercentage
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Discard()

    Invalidates the coordinate.

    Declaration
    public void Discard()
    | Edit this page View Source

    Reset()

    Resets the values to invalid defaults.

    Declaration
    public void Reset()
    • 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