Search Results for

    Show / Hide Table of Contents

    Struct CellRect

    Namespace: AS2
    Assembly: .dll
    Syntax
    public struct CellRect

    Constructors

    | Edit this page View Source

    CellRect(int, int, int, int)

    Declaration
    public CellRect(int minX, int minY, int width, int height)
    Parameters
    Type Name Description
    int minX
    int minY
    int width
    int height

    Fields

    | Edit this page View Source

    maxX

    Declaration
    public int maxX
    Field Value
    Type Description
    int
    | Edit this page View Source

    maxY

    Declaration
    public int maxY
    Field Value
    Type Description
    int
    | Edit this page View Source

    minX

    Declaration
    public int minX
    Field Value
    Type Description
    int
    | Edit this page View Source

    minY

    Declaration
    public int minY
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    Area

    Declaration
    public int Area { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Height

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Width

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    CellRect_Complement(CellRect)

    Returns a list of rects that contain each field from the complement of "this \ otherRect" exactly once.

    Declaration
    public List<CellRect> CellRect_Complement(CellRect otherRect)
    Parameters
    Type Name Description
    CellRect otherRect
    Returns
    Type Description
    List<CellRect>
    | Edit this page View Source

    CellRect_CutSet(CellRect)

    Returns the cut set of the two rects (which is another simple rect). If there is no cut, an invalid rect with Width=0 and Height=0 is returned. Can be used for an iterator that does not return values.

    Declaration
    public CellRect CellRect_CutSet(CellRect otherRect)
    Parameters
    Type Name Description
    CellRect otherRect
    Returns
    Type Description
    CellRect
    | Edit this page View Source

    Contains(int, int)

    Returns if the given point is in the CellRect.

    Declaration
    public bool Contains(int x, int y)
    Parameters
    Type Name Description
    int x
    int y
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    System.ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    System.ValueType.GetHashCode()
    | Edit this page View Source

    GetIterator()

    Declaration
    public CellRect.CellRect_Iterator GetIterator()
    Returns
    Type Description
    CellRect.CellRect_Iterator
    | Edit this page View Source

    IsValid()

    Returns if the rect is valid.

    Declaration
    public bool IsValid()
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    System.ValueType.ToString()

    Operators

    | Edit this page View Source

    operator ==(CellRect, CellRect)

    Declaration
    public static bool operator ==(CellRect left, CellRect right)
    Parameters
    Type Name Description
    CellRect left
    CellRect right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(CellRect, CellRect)

    Declaration
    public static bool operator !=(CellRect lhs, CellRect rhs)
    Parameters
    Type Name Description
    CellRect lhs
    CellRect rhs
    Returns
    Type Description
    bool
    • 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