math docs
    Preparing search index...

    Function size

    • Calculate the size (dimensions) of a bounding box

      Parameters

      • out: vec2.Vec2

        The output Vec2 for the size

      • box: readonly [number, number, number, number]

        The input Box2

      Returns vec2.Vec2

      The size (width, height)