Variables
Const a
a: number = left / Math.sin(z)
Const aa
aa: number = ah * Math.cos(y)
Const ah
ah: number = a / 2
Const al
al: number = ah - aa
Const ao
ao: number = ah * Math.sin(y)
Const b
b: number = h / Math.sin(x)
Const ba
ba: number = bh * Math.cos(x)
Const bh
bh: number = b / 2
Const bl
bl: number = bh - ba
Const bo
bo: number = bh * Math.sin(x)
Const c
c: number = Math.max(0, Math.min(80, 100))
Const h
h: number = 50 - p
Const left
left: number = 100 - c
Const x
x: number = Math.atan(h / 100)
Const y
y: number = (Math.PI / 2) - z
Const z
z: number = Math.atan(left / h)