math docs
    Preparing search index...

    Function center

    • Calculate the center point of a bounding box

      Parameters

      • out: vec2.Vec2

        The output Vec2 for the center

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

        The input Box2

      Returns vec2.Vec2

      The center point