math docs
    Preparing search index...

    Function center

    • Calculate the center point of a bounding box

      Parameters

      • out: vec3.Vec3

        The output Vec3 for the center

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

        The input Box3

      Returns vec3.Vec3

      The center point