3
$\begingroup$

The book omitted the explanation of the constructor of hyperboloid.

Could someone give some explanations about:

  1. Why the arguments are two points?
  2. What are the meanings of ah and ch?
  3. Why is there a while loop?
$\endgroup$
1
$\begingroup$
  1. They must define it as a surface of revolution of a line segment.
  2. From the comments, they are probably the a and c coefficients of the canonical hyperboloid equation. With a surface of revolution, a == b so no need to store b separately.
  3. It's clearly related to figuring out ah and ch from the line segment. I can't say more precisely without working out the math involved. I'll leave that to someone with more free time.
$\endgroup$
2
  • $\begingroup$ A surface of revolution of a line segment would be a disk, cylinder, or cone, no? I can't see how you would get a hyperboloid; it should be a surface of revolution of a hyperbola. I'm guessing the hyperbola is fit to pass through the two points, or something like that. $\endgroup$ May 23 '17 at 15:13
  • 2
    $\begingroup$ @NathanReed It's not intuitive at all but it is possible. Look at the diagrams on the right side of the wikipedia entry. $\endgroup$
    – Olivier
    May 23 '17 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.