packages/MC/geometry/RTK_Cell.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Get vessel data.
 *
 * \return true if vessel in cell; false otherwise
 *
 * \param R0 inner vessel radius (-1 if inner radius does not bisect vessel)
 * \param R1 outer vessel radisu (-1 if outer radius does not bisect vessel)
 * \param xc x-coordinate of cell origin relative to vessel origin
 * \param yc y-coordinate of cell origin relative to vessel origin
 */
\brief Get vessel data.
\return true if vessel in cell; false otherwise

\param R0 inner vessel radius (-1 if inner radius does not bisect vessel)
\param R1 outer vessel radisu (-1 if outer radius does not bisect vessel)
\param xc x-coordinate of cell origin relative to vessel origin
\param yc y-coordinate of cell origin relative to vessel origin
\ brief Get vessel data . \ return true if vessel in cell ; false otherwise \ param R0 inner vessel radius ( - 1 if inner radius does not bisect vessel ) \ param R1 outer vessel radisu ( - 1 if outer radius does not bisect vessel ) \ param xc x - coordinate of cell origin relative to vessel origin \ param yc y - coordinate of cell origin relative to vessel origin
bool RTK_Cell::vessel_data(double &R0,
                           double &R1,
                           double &xc,
                           double &yc) const
{
    if (!d_vessel)
    {
        R0 = -1.0;
        R1 = -1.0;
        return false;
    }
    R0 = d_R0;
    R1 = d_R1;
    xc = d_offsets[0];
    yc = d_offsets[1];
    return true;
}
bool RTK_Cell :: vessel_data ( double & R0 , double & R1 , double & xc , double & yc ) const { if ( ! d_vessel ) { R0 = -1.0 ; R1 = -1.0 ; return false ; } R0 = d_R0 ; R1 = d_R1 ; xc = d_offsets [ 0 ] ; yc = d_offsets [ 1 ] ; return true ; }
\brief Get vessel data.
\ brief Get vessel data .
// return if no vessel // assign the data describing the vessel