@studiokeywi/banjo - v0.0.1
    Preparing search index...

    A Box is a non-polygonal representation of an axis-aligned bounding box

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Create a new box

      Parameters

      • position: Vector2 = ...

        Location of the box

      • width: number = 0

        Width of the box

      • Optionalheight: number = width

        Height of the box. Defaults to the width

      Returns Box

    Accessors

    • get height(): number

      The height of the box

      Returns number

    • get width(): number

      The width of the box

      Returns number

    Methods