# QuantLib_SphereCylinderOptimizer man page

SphereCylinderOptimizer —

## Synopsis

`#include <ql/math/optimization/spherecylinder.hpp>`

### Public Member Functions

SphereCylinderOptimizer(Realr,Reals,Realalpha,Realz1,Realz2,Realz3,Realzweight=1.0)

boolisIntersectionNonEmpty() const

voidfindClosest(SizemaxIterations,Realtolerance,Real&y1,Real&y2,Real&y3) const

boolfindByProjection(Real&y1,Real&y2,Real&y3) const

## Detailed Description

- ·
- we are in r^3 sphere centred at O radius r
- ·
- vertical cylinder centred at (alpha,0) radius s
- ·
- Z some point in R3
- ·
- find point on intersection that is closest to Z

the intersection may be empty!

## Author

Generated automatically by Doxygen for QuantLib from the source code.

## Referenced By

findByProjection(3), findClosest(3), isIntersectionNonEmpty(3) and SphereCylinderOptimizer(3) are aliases of QuantLib_SphereCylinderOptimizer(3).