min_circle_2_window_stream.h
来自「CGAL is a collaborative effort of severa」· C头文件 代码 · 共 74 行
H
74 行
// Copyright (c) 1997-2001 Freie Universitaet Berlin (Germany).// All rights reserved.//// This file is part of CGAL (www.cgal.org); you may redistribute it under// the terms of the Q Public License version 1.0.// See the file LICENSE.QPL distributed with CGAL.//// Licensees holding a valid commercial license may use this file in// accordance with the commercial license agreement provided with the software.//// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.//// $Source: /CVSROOT/CGAL/Packages/Min_circle_2/include/CGAL/IO/Min_circle_2_Window_stream.h,v $// $Revision: 1.10 $ $Date: 2004/09/05 12:30:23 $// $Name: $//// Author(s) : Sven Schoenherr <sven@inf.ethz.ch>, Bernd Gaertner// Each of the following operators is individually// protected against multiple inclusion.// Window_stream I/O operators// ===========================// Optimisation_circle_2// ---------------------#ifdef CGAL_OPTIMISATION_CIRCLE_2_H#ifndef CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2#define CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2template< class K_ >CGAL::Window_stream&operator << ( CGAL::Window_stream &ws, const CGAL::Optimisation_circle_2<K_>& oc){ double cx( CGAL::to_double( oc.center().x())); double cy( CGAL::to_double( oc.center().y())); double sr( CGAL::to_double( oc.squared_radius())); if ( ! CGAL_NTS is_negative( sr)) ws.draw_circle( cx, cy, CGAL::sqrt( sr)); return( ws);}#endif // CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2#endif // CGAL_OPTIMISATION_CIRCLE_2_H// Min_circle_2// ------------#ifdef CGAL_MIN_CIRCLE_2_H#ifndef CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2#define CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2template< class Traits_ >CGAL::Window_stream&operator << ( CGAL::Window_stream &ws, const CGAL::Min_circle_2<Traits_>& min_circle){ typedef typename CGAL::Min_circle_2<Traits_>::Point_iterator Point_iterator; Point_iterator first( min_circle.points_begin()); Point_iterator last ( min_circle.points_end()); for ( ; first != last; ++first) ws << *first; return( ws << min_circle.circle());}#endif // CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2#endif // CGAL_MIN_CIRCLE_2_H// ===== EOF ==================================================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?