import { type Plane } from "./turn.kit.ts"; /** What a net on a court is: where it hangs, between which posts, and the line of its top and of its bottom. */ export interface NetBody { id: string; x: number; y0: number; y1: number; /** The height of the top edge and of the bottom edge over a place across the court, above the court's own surface. */ top: (y: number) => number; bottom: (y: number) => number; /** The mesh's cell, and the tape along the top, in feet. */ cell: number; tape: number; /** Vertical white bands across the net at these places across the court (volleyball's side bands), and their width. */ bands?: { at: readonly number[]; width: number; }; } /** The net: a mesh between a top line and a bottom line, with its tape, on one plane standing over the line x. */ export declare function netPlane(b: NetBody, lift: number): Plane; /** A parabola from the centre height to the post height: the sag of a net hung between two posts. */ export declare const sag: (y0: number, y1: number, centre: number, posts: number) => (y: number) => number; /** * A table: a skirt under its top and four legs set in from its ends, over the rectangle (x0, y0) to (x1, y1), its top `lift` feet over the floor. `top` also draws the top * itself (a teqball table stands on a court; a table tennis table is the surface, which the drawing already shows). */ export declare function tableBody(x0: number, y0: number, x1: number, y1: number, lift: number, thin: number, top: boolean): Plane[]; /** A rectangle on the floor, in feet. */ export type FloorRect = readonly [x0: number, y0: number, x1: number, y1: number]; /** * The surrounds that enclose a playing area: four boards of one height standing over the edge of `r`, each in pieces of at most ten feet (so each is sorted among the table and the chairs and not as one slab by its * middle), facing out from the area's middle and giving way to a nearly level eye, as the glass of a rink does. Painted in the look's own surround colour. */ export declare function surroundWalls(id: string, r: FloorRect, height: number): Plane[]; /** A solid box on the floor, in feet: four sides up to `top` and a flat top; `cls` paints the top and `cls-side` (a tone darker) the sides. */ export declare function standingBox(id: string, kind: Plane["kind"], r: FloorRect, top: number, cls: string, side?: string): Plane[];