closest_line_line.h

Back to Closest points

pastel/geometry/closest/

// Description: Closest points between two lines

#ifndef PASTELGEOMETRY_CLOSEST_LINE_LINE_H
#define PASTELGEOMETRY_CLOSEST_LINE_LINE_H

#include "pastel/sys/mytypes.h"
#include "pastel/sys/tuple.h"

#include "pastel/geometry/shape/line.h"

namespace Pastel
{

    //! Computes closest points between two lines.
    /*!
   Returns:
   Parameters (s, t) such that 'aLine.at(s)' and
   'bLine.at(t)' are closest points.
   */
    template <typename Real, integer N>
    Tuple<Real, 2> closest(
        const Line<Real, N>& aLine,
        const Line<Real, N>& bLine);

}

#include "pastel/geometry/closest/closest_line_line.hpp"

#endif