Seat angle calculation?

Just wanted to verify my understanding, is the following formula correct?

X = sin(Y) * Z

X = horizontal distance in cm from hip socket to a vertical line passing through the BB
Y = 90 - desired seat angle (i.e. for 80 degree seat angle Y = 10)
Z = distance in cm from pedal spindle to hip socket

If you made Z be the distance from the bottom bracket to the hip scoket, your formulas make sense. Measuring to the spindle doesn’t make sense since it would depend on where in the cycle you were.

Whenever I see seat angle discussed, it is usually the angle formed by the line from the top center of the saddle to the bottom bracket and a horizontal line. You could argue that it would make more sense to measure it to a fixed point on the rider, but that is tough to measure. Two guys could ride the same bike and you would say one had a seat angle of 78, while the other had a seat angle of 80. That would be confusing.