Ta có:

 AB        a
------- = -----
AB+h     a'

A = (43.24742251058846, 16.83457480350235)
B' = (43.19534248097284, -2.2787960654285606)
a_1 = Segment(A, B')
B = Point(a_1)
b = OrthogonalLine(B, a_1)
c = OrthogonalLine(B', a_1)
C' = Point(c)
d = Segment(A, C')
C = Intersect(b, d)
a' = Segment(B', C')
a = Segment(B, C)
g = Segment(A, B)
h = Segment(B, B')