mirror of https://github.com/CGAL/cgal
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
// ======================================================================
|
|
//
|
|
// Copyright (c) 2000 The CGAL Consortium
|
|
//
|
|
// This software and related documentation is part of an INTERNAL release
|
|
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
|
// intended for general use.
|
|
//
|
|
// ----------------------------------------------------------------------
|
|
//
|
|
// release :
|
|
// release_date :
|
|
//
|
|
// file : include/CGAL/Cartesian/solve_3.h
|
|
// revision : $Revision$
|
|
// revision_date : $Date$
|
|
// author(s) : Andreas Fabri
|
|
// coordinator : INRIA Sophia-Antipolis (Mariette.Yvinec@sophia.inria.fr)
|
|
//
|
|
// ======================================================================
|
|
|
|
#ifndef CGAL_CARTESIAN_CARTESIAN_SOLVE_3_H
|
|
#define CGAL_CARTESIAN_CARTESIAN_SOLVE_3_H
|
|
|
|
#include <CGAL/Cartesian/redefine_names_3.h>
|
|
#include <CGAL/solve.h>
|
|
#include <CGAL/Cartesian/Vector_3.h>
|
|
|
|
CGAL_BEGIN_NAMESPACE
|
|
|
|
template <class R>
|
|
void solve (const VectorC3<R CGAL_CTAG> &v0,
|
|
const VectorC3<R CGAL_CTAG> &v1,
|
|
const VectorC3<R CGAL_CTAG> &v2,
|
|
const VectorC3<R CGAL_CTAG> &d,
|
|
typename R::FT &alpha, typename R::FT &beta, typename R::FT &gamma)
|
|
{
|
|
solve(v0.x(), v0.y(), v0.z(),
|
|
v1.x(), v1.y(), v1.z(),
|
|
v2.x(), v2.y(), v2.z(),
|
|
d.x(), d.y(), d.z(),
|
|
alpha, beta, gamma);
|
|
}
|
|
|
|
CGAL_END_NAMESPACE
|
|
|
|
#endif // CGAL_CARTESIAN_CARTESIAN_SOLVE_3_H
|