MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
LLisect.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGLLisect_HH_
6 #define _MGLLisect_HH_
7 
12 #include "mg/Position.h"
13 #include "topo/LEPoint.h"
14 
15 //
16 //Define MGLLisect Class.
17 
19 
23 class MG_DLL_DECLR MGLLisect{
24 
25 public:
26 
28 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGLLisect& );
29 
31 
32 MGLLisect();
33 MGLLisect(
34  const MGPosition& uv,
35  const MGLEPoint& lp1,
36  const MGLEPoint& lp2
37 );
38 
40 
42 bool operator< (const MGLLisect& li2)const;
43 bool operator> (const MGLLisect& li2)const{return li2<(*this);};
44 bool operator<= (const MGLLisect& li2)const{return !(li2<(*this));};
45 bool operator>= (const MGLLisect& li2)const{return !((*this)<li2);};
46 bool operator== (const MGLLisect& li2)const;
47 bool operator!= (const MGLLisect& li2)const{return !operator==(li2);};
48 
50 
52 double distance_square(const MGLLisect& is2) const;
53 
55 const MGPosition& isect_uv()const{return m_uv;}
56 const MGLEPoint& isect1()const{return m_is1;};
57 const MGLEPoint& isect2()const{return m_is2;};
58 
59 private:
60  MGPosition m_uv;
61  MGLEPoint m_is1;
62  MGLEPoint m_is2;
63 
64 };
65  // end of IsectContainer group
67 #endif
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
To represent two loops intersection point.
Definition: LLisect.h:23
Represent a positional data.
Definition: Position.h:28
Is to represent a Loop's point.
Definition: LEPoint.h:28
const MGLEPoint & isect1() const
Definition: LLisect.h:56
const MGLEPoint & isect2() const
Definition: LLisect.h:57
const MGPosition & isect_uv() const
Return isect data.
Definition: LLisect.h:55