mirror of https://github.com/CGAL/cgal
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
// ======================================================================
|
|
//
|
|
// Copyright (c) 1999 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 : basic_constructions_2.h
|
|
// package : _2
|
|
// revision : $Revision$
|
|
// revision_date : $Date$
|
|
// author(s) : Sven Schoenherr
|
|
//
|
|
// coordinator : MPI, Saarbruecken (<Stefan.Schirra@mpi-sb.mpg.de>)
|
|
// ======================================================================
|
|
|
|
|
|
#ifndef CGAL_BASIC_CONSTRUCTIONS_2_H
|
|
#define CGAL_BASIC_CONSTRUCTIONS_2_H
|
|
|
|
#if defined CGAL_HOMOGENEOUS_H || defined CGAL_SIMPLE_HOMOGENEOUS_H
|
|
#include <CGAL/basic_constructionsH2.h>
|
|
#endif
|
|
|
|
#if defined CGAL_CARTESIAN_H || defined CGAL_SIMPLE_CARTESIAN_H
|
|
#include <CGAL/Cartesian/basic_constructions_2.h>
|
|
#endif
|
|
|
|
CGAL_BEGIN_NAMESPACE
|
|
|
|
template < class R >
|
|
inline
|
|
Point_2<R>
|
|
midpoint( const Point_2<R>& p,
|
|
const Point_2<R>& q )
|
|
{
|
|
typedef typename R::Point_2_base RPoint_2;
|
|
return( midpoint( static_cast<const RPoint_2&>(p),
|
|
static_cast<const RPoint_2&>(q)));
|
|
}
|
|
|
|
template < class R >
|
|
inline
|
|
Point_2<R>
|
|
circumcenter( const Point_2<R>& p,
|
|
const Point_2<R>& q,
|
|
const Point_2<R>& r)
|
|
{
|
|
typedef typename R::Point_2_base RPoint_2;
|
|
return( circumcenter( static_cast<const RPoint_2&>(p),
|
|
static_cast<const RPoint_2&>(q),
|
|
static_cast<const RPoint_2&>(r)));
|
|
}
|
|
CGAL_END_NAMESPACE
|
|
|
|
#endif // CGAL_BASIC_CONSTRUCTIONS_2_H
|