CapFromCenterHeight constructs a cap with the given center and height. A negative height yields an empty cap; a height of 2 or more yields a full cap. The center should be unit length.
(center Point, height float64)
| 86 | // negative height yields an empty cap; a height of 2 or more yields a full cap. |
| 87 | // The center should be unit length. |
| 88 | func CapFromCenterHeight(center Point, height float64) Cap { |
| 89 | return CapFromCenterChordAngle(center, s1.ChordAngleFromSquaredLength(2*height)) |
| 90 | } |
| 91 | |
| 92 | // CapFromCenterArea constructs a cap with the given center and surface area. |
| 93 | // Note that the area can also be interpreted as the solid angle subtended by the |
searching dependent graphs…