⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 polygon_offset_pred_ftc2.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
字号:
// Copyright (c) 2006 Fernando Luis Cacciola Carballal. 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.//// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Straight_skeleton_2/include/CGAL/predicates/Polygon_offset_pred_ftC2.h $// $Id: Polygon_offset_pred_ftC2.h 36633 2007-02-27 18:19:42Z fcacciola $// // Author(s)     : Fernando Cacciola <fernando_cacciola@ciudad.com.ar>//#ifndef CGAL_POLYGON_OFFSET_PRED_FTC2_H#define CGAL_POLYGON_OFFSET_PRED_FTC2_H 1#include <CGAL/constructions/Straight_skeleton_cons_ftC2.h>CGAL_BEGIN_NAMESPACEnamespace CGAL_SS_i{// Given a triple of oriented straight line segments: (e0,e1,e2) such that// there exists a distance 'et' for which the offsets lines at 'et' (e0',e1',e2') intersect in a single point;// returns the relative order of 't' w.r.t 'et'.// PRECONDITION: There exist a positive distance et for which the offset triple intersect at a single point.template<class K>Uncertain<Comparison_result> compare_offset_against_isec_timeC2 ( typename K::FT const& t, Seeded_trisegment_2<K> const& st ){  typedef typename K::FT FT ;    typedef Seeded_trisegment_2<K> Seeded_trisegment_2 ;    typedef Rational<FT> Rational ;  typedef Quotient<FT> Quotient ;    typedef optional<Rational> Optional_rational ;   Uncertain<Comparison_result> rResult = Uncertain<Comparison_result>::indeterminate();  Optional_rational et_ = compute_offset_lines_isec_timeC2(st);  if ( et_ )  {    Quotient et = et_->to_quotient();    CGAL_assertion ( CGAL_NTS certified_is_positive(et) ) ;    rResult = CGAL_NTS certified_compare(et,t);  }  return rResult ;}} // namespace CGAL_SS_iCGAL_END_NAMESPACE#endif // CGAL_POLYGON_OFFSET_PRED_FTC2_H //// EOF //

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -