Skip to content

five-on-it / apps/client/src/renderer/glass / Pane

Interface: Pane ​

Defined in: apps/client/src/renderer/glass.ts:23

A pane: its plane (normal, outward, and offset: normal·p = offset on it), a frame on it (u, v), its outline's edges in that frame and the door it lies on (−1 for the body).

Properties ​

door ​

door: number

Defined in: apps/client/src/renderer/glass.ts:32


edges ​

edges: number[][]

Defined in: apps/client/src/renderer/glass.ts:29

The outline: [u0, v0, u1, v1] per edge.


normal ​

normal: Vec

Defined in: apps/client/src/renderer/glass.ts:24


offset ​

offset: number

Defined in: apps/client/src/renderer/glass.ts:25


triangles ​

triangles: number[][]

Defined in: apps/client/src/renderer/glass.ts:31

Its triangles in the frame, six numbers each, for telling inside from outside.


u ​

u: Vec

Defined in: apps/client/src/renderer/glass.ts:26


v ​

v: Vec

Defined in: apps/client/src/renderer/glass.ts:27