Debian Codegraph @

lemon/bits/bezier.h

raw symbols SCIP
1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
2 *
3 * This file is a part of LEMON, a generic C++ optimization library.
4 *
5 * Copyright (C) 2003-2013
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
8 *
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
12 *
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
15 * purpose.
16 *
17 */
18
19 #ifndef LEMON_BEZIER_H
20 #define LEMON_BEZIER_Hcxx . . $ `lemon/bits/bezier.h:20:9`!
21
22 //\ingroup misc
23 //\file
24 //\brief Classes to compute with Bezier curves.
25 //
26 //Up to now this file is used internally by \ref graph_to_eps.h
27
28 #include<lemon/dim2.h>cxx . . $ `<file>/lemon/dim2.h`/
29
30 namespace lemoncxx . . $ lemon/ {
31 namespace dim2cxx . . $ lemon/dim2/ {
32
33 class BezierBasecxx . . $ lemon/dim2/BezierBase# {
34 public:
35 typedef lemoncxx . . $ lemon/::dim2cxx . . $ lemon/dim2/::Pointcxx . . $ lemon/dim2/Point#<double> Pointcxx . . $ lemon/dim2/BezierBase#Point#;
36 protected:
37 static Pointcxx . . $ lemon/dim2/BezierBase#Point# convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(Pointcxx . . $ lemon/dim2/BezierBase#Point# x,Pointcxx . . $ lemon/dim2/BezierBase#Point# y,double t) {return (1-t)*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).x+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).t*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).y;}
38 };
39
40 class Bezier1cxx . . $ lemon/dim2/Bezier1# : public BezierBasecxx . . $ lemon/dim2/BezierBase#
41 {
42 public:
43 Pointcxx . . $ lemon/dim2/BezierBase#Point# p1cxx . . $ lemon/dim2/Bezier1#p1.,p2cxx . . $ lemon/dim2/Bezier1#p2.;
44
45 Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(49f6e7a06ebc5aa8).() {}
46 Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(Pointcxx . . $ lemon/dim2/BezierBase#Point# _p1, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p2) :p1cxx . . $ lemon/dim2/Bezier1#p1.(_p1), p2cxx . . $ lemon/dim2/Bezier1#p2.(_p2) {}
47
48 Pointcxx . . $ lemon/dim2/BezierBase#Point# operatorcxx . . $ lemon/dim2/Bezier1#`operator()`(6c0f637a93af82d).()(double t) const
49 {
50 // return conv(conv(p1,p2,t),conv(p2,p3,t),t);
51 return convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier1#p1.,p2cxx . . $ lemon/dim2/Bezier1#p2.,t);
52 }
53 Bezier1cxx . . $ lemon/dim2/Bezier1# beforecxx . . $ lemon/dim2/Bezier1#before(69690a81f916340f).(double t) const
54 {
55 return Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(p1cxx . . $ lemon/dim2/Bezier1#p1.,convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier1#p1.,p2cxx . . $ lemon/dim2/Bezier1#p2.,t));
56 }
57
58 Bezier1cxx . . $ lemon/dim2/Bezier1# aftercxx . . $ lemon/dim2/Bezier1#after(69690a81f916340f).(double t) const
59 {
60 return Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier1#p1.,p2cxx . . $ lemon/dim2/Bezier1#p2.,t),p2cxx . . $ lemon/dim2/Bezier1#p2.);
61 }
62
63 Bezier1cxx . . $ lemon/dim2/Bezier1# revertcxx . . $ lemon/dim2/Bezier1#revert(ab3b102409323afa).() const { return Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(p2cxx . . $ lemon/dim2/Bezier1#p2.,p1cxx . . $ lemon/dim2/Bezier1#p1.);}
64 Bezier1cxx . . $ lemon/dim2/Bezier1# operatorcxx . . $ lemon/dim2/Bezier1#`operator()`(6a4cfe6ec016e336).()(double a,double b) const { return beforecxx . . $ lemon/dim2/Bezier1#before(69690a81f916340f).(b).aftercxx . . $ lemon/dim2/Bezier1#after(69690a81f916340f).(a/b); }
65 Pointcxx . . $ lemon/dim2/BezierBase#Point# gradcxx . . $ lemon/dim2/Bezier1#grad(c5b6c99f4b27c50d).() const { return p2cxx . . $ lemon/dim2/Bezier1#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier1#p1.; }
66 Pointcxx . . $ lemon/dim2/BezierBase#Point# normcxx . . $ lemon/dim2/Bezier1#norm(c5b6c99f4b27c50d).() const { return rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p2cxx . . $ lemon/dim2/Bezier1#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier1#p1.); }
67 Pointcxx . . $ lemon/dim2/BezierBase#Point# gradcxx . . $ lemon/dim2/Bezier1#grad(6c0f637a93af82d).(double) const { return gradcxx . . $ lemon/dim2/Bezier1#grad(c5b6c99f4b27c50d).(); }
68 Pointcxx . . $ lemon/dim2/BezierBase#Point# normcxx . . $ lemon/dim2/Bezier1#norm(6c0f637a93af82d).(double t) const { return rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(gradcxx . . $ lemon/dim2/Bezier1#grad(6c0f637a93af82d).(t)); }
69 };
70
71 class Bezier2cxx . . $ lemon/dim2/Bezier2# : public BezierBasecxx . . $ lemon/dim2/BezierBase#
72 {
73 public:
74 Pointcxx . . $ lemon/dim2/BezierBase#Point# p1cxx . . $ lemon/dim2/Bezier2#p1.,p2cxx . . $ lemon/dim2/Bezier2#p2.,p3cxx . . $ lemon/dim2/Bezier2#p3.;
75
76 Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(49f6e7a06ebc5aa8).() {}
77 Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(Pointcxx . . $ lemon/dim2/BezierBase#Point# _p1, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p2, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p3) :p1cxx . . $ lemon/dim2/Bezier2#p1.(_p1), p2cxx . . $ lemon/dim2/Bezier2#p2.(_p2), p3cxx . . $ lemon/dim2/Bezier2#p3.(_p3) {}
78 Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(398f020f4fc03441).(const Bezier1cxx . . $ lemon/dim2/Bezier1# &b) : p1cxx . . $ lemon/dim2/Bezier2#p1.(b.p1cxx . . $ lemon/dim2/Bezier1#p1.), p2cxx . . $ lemon/dim2/Bezier2#p2.(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(b.p1cxx . . $ lemon/dim2/Bezier1#p1.,b.p2cxx . . $ lemon/dim2/Bezier1#p2.,.5)), p3cxx . . $ lemon/dim2/Bezier2#p3.(b.p2cxx . . $ lemon/dim2/Bezier1#p2.) {}
79 Pointcxx . . $ lemon/dim2/BezierBase#Point# operatorcxx . . $ lemon/dim2/Bezier2#`operator()`(6c0f637a93af82d).()(double t) const
80 {
81 // return conv(conv(p1,p2,t),conv(p2,p3,t),t);
82 return ((1-t)*(1-t))*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p1cxx . . $ lemon/dim2/Bezier2#p1.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).(2*(1-t)*t)*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p2cxx . . $ lemon/dim2/Bezier2#p2.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).(t*t)*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p3cxx . . $ lemon/dim2/Bezier2#p3.;
83 }
84 Bezier2cxx . . $ lemon/dim2/Bezier2# beforecxx . . $ lemon/dim2/Bezier2#before(5e4a159120951d89).(double t) const
85 {
86 Pointcxx . . $ lemon/dim2/BezierBase#Point# q(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier2#p1.,p2cxx . . $ lemon/dim2/Bezier2#p2.,t));
87 Pointcxx . . $ lemon/dim2/BezierBase#Point# r(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p2cxx . . $ lemon/dim2/Bezier2#p2.,p3cxx . . $ lemon/dim2/Bezier2#p3.,t));
88 return Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(p1cxx . . $ lemon/dim2/Bezier2#p1.,q,convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(q,r,t));
89 }
90
91 Bezier2cxx . . $ lemon/dim2/Bezier2# aftercxx . . $ lemon/dim2/Bezier2#after(5e4a159120951d89).(double t) const
92 {
93 Pointcxx . . $ lemon/dim2/BezierBase#Point# q(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier2#p1.,p2cxx . . $ lemon/dim2/Bezier2#p2.,t));
94 Pointcxx . . $ lemon/dim2/BezierBase#Point# r(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p2cxx . . $ lemon/dim2/Bezier2#p2.,p3cxx . . $ lemon/dim2/Bezier2#p3.,t));
95 return Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(q,r,t),r,p3cxx . . $ lemon/dim2/Bezier2#p3.);
96 }
97 Bezier2cxx . . $ lemon/dim2/Bezier2# revertcxx . . $ lemon/dim2/Bezier2#revert(172188e2cb932421).() const { return Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(p3cxx . . $ lemon/dim2/Bezier2#p3.,p2cxx . . $ lemon/dim2/Bezier2#p2.,p1cxx . . $ lemon/dim2/Bezier2#p1.);}
98 Bezier2cxx . . $ lemon/dim2/Bezier2# operatorcxx . . $ lemon/dim2/Bezier2#`operator()`(1ce62db876ea996f).()(double a,double b) const { return beforecxx . . $ lemon/dim2/Bezier2#before(5e4a159120951d89).(b).aftercxx . . $ lemon/dim2/Bezier2#after(5e4a159120951d89).(a/b); }
99 Bezier1cxx . . $ lemon/dim2/Bezier1# gradcxx . . $ lemon/dim2/Bezier2#grad(ab3b102409323afa).() const { return Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(2.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).(p2cxx . . $ lemon/dim2/Bezier2#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier2#p1.),2.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).(p3cxx . . $ lemon/dim2/Bezier2#p3.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p2cxx . . $ lemon/dim2/Bezier2#p2.)); }
100 Bezier1cxx . . $ lemon/dim2/Bezier1# normcxx . . $ lemon/dim2/Bezier2#norm(ab3b102409323afa).() const { return Bezier1cxx . . $ lemon/dim2/Bezier1#Bezier1(ba118891a5b1cf9a).(2.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p2cxx . . $ lemon/dim2/Bezier2#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier2#p1.),2.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p3cxx . . $ lemon/dim2/Bezier2#p3.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p2cxx . . $ lemon/dim2/Bezier2#p2.)); }
101 Pointcxx . . $ lemon/dim2/BezierBase#Point# gradcxx . . $ lemon/dim2/Bezier2#grad(6c0f637a93af82d).(double t) const { return gradcxx . . $ lemon/dim2/Bezier2#grad(ab3b102409323afa).()(cxx . . $ lemon/dim2/Bezier1#`operator()`(6c0f637a93af82d).t); }
102 Pointcxx . . $ lemon/dim2/BezierBase#Point# normcxx . . $ lemon/dim2/Bezier2#norm(6c0f637a93af82d).(double t) const { return rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(gradcxx . . $ lemon/dim2/Bezier2#grad(6c0f637a93af82d).(t)); }
103 };
104
105 class Bezier3cxx . . $ lemon/dim2/Bezier3# : public BezierBasecxx . . $ lemon/dim2/BezierBase#
106 {
107 public:
108 Pointcxx . . $ lemon/dim2/BezierBase#Point# p1cxx . . $ lemon/dim2/Bezier3#p1.,p2cxx . . $ lemon/dim2/Bezier3#p2.,p3cxx . . $ lemon/dim2/Bezier3#p3.,p4cxx . . $ lemon/dim2/Bezier3#p4.;
109
110 Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(49f6e7a06ebc5aa8).() {}
111 Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(Pointcxx . . $ lemon/dim2/BezierBase#Point# _p1, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p2, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p3, Pointcxx . . $ lemon/dim2/BezierBase#Point# _p4)
112 : p1cxx . . $ lemon/dim2/Bezier3#p1.(_p1), p2cxx . . $ lemon/dim2/Bezier3#p2.(_p2), p3cxx . . $ lemon/dim2/Bezier3#p3.(_p3), p4cxx . . $ lemon/dim2/Bezier3#p4.(_p4) {}
113 Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(398f020f4fc03441).(const Bezier1cxx . . $ lemon/dim2/Bezier1# &b) : p1cxx . . $ lemon/dim2/Bezier3#p1.(b.p1cxx . . $ lemon/dim2/Bezier1#p1.), p2cxx . . $ lemon/dim2/Bezier3#p2.(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(b.p1cxx . . $ lemon/dim2/Bezier1#p1.,b.p2cxx . . $ lemon/dim2/Bezier1#p2.,1.0/3.0)),
114 p3cxx . . $ lemon/dim2/Bezier3#p3.(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(b.p1cxx . . $ lemon/dim2/Bezier1#p1.,b.p2cxx . . $ lemon/dim2/Bezier1#p2.,2.0/3.0)), p4cxx . . $ lemon/dim2/Bezier3#p4.(b.p2cxx . . $ lemon/dim2/Bezier1#p2.) {}
115 Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(bae0298a4b5c938c).(const Bezier2cxx . . $ lemon/dim2/Bezier2# &b) : p1cxx . . $ lemon/dim2/Bezier3#p1.(b.p1cxx . . $ lemon/dim2/Bezier2#p1.), p2cxx . . $ lemon/dim2/Bezier3#p2.(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(b.p1cxx . . $ lemon/dim2/Bezier2#p1.,b.p2cxx . . $ lemon/dim2/Bezier2#p2.,2.0/3.0)),
116 p3cxx . . $ lemon/dim2/Bezier3#p3.(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(b.p2cxx . . $ lemon/dim2/Bezier2#p2.,b.p3cxx . . $ lemon/dim2/Bezier2#p3.,1.0/3.0)), p4cxx . . $ lemon/dim2/Bezier3#p4.(b.p3cxx . . $ lemon/dim2/Bezier2#p3.) {}
117
118 Pointcxx . . $ lemon/dim2/BezierBase#Point# operatorcxx . . $ lemon/dim2/Bezier3#`operator()`(6c0f637a93af82d).()(double t) const
119 {
120 // return Bezier2(conv(p1,p2,t),conv(p2,p3,t),conv(p3,p4,t))(t);
121 return ((1-t)*(1-t)*(1-t))*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p1cxx . . $ lemon/dim2/Bezier3#p1.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).(3*t*(1-t)*(1-t))*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p2cxx . . $ lemon/dim2/Bezier3#p2.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).
122 (3*t*t*(1-t))*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p3cxx . . $ lemon/dim2/Bezier3#p3.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).(t*t*t)*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).p4cxx . . $ lemon/dim2/Bezier3#p4.;
123 }
124 Bezier3cxx . . $ lemon/dim2/Bezier3# beforecxx . . $ lemon/dim2/Bezier3#before(f9114825e86650aa).(double t) const
125 {
126 Pointcxx . . $ lemon/dim2/BezierBase#Point# p(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier3#p1.,p2cxx . . $ lemon/dim2/Bezier3#p2.,t));
127 Pointcxx . . $ lemon/dim2/BezierBase#Point# q(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p2cxx . . $ lemon/dim2/Bezier3#p2.,p3cxx . . $ lemon/dim2/Bezier3#p3.,t));
128 Pointcxx . . $ lemon/dim2/BezierBase#Point# r(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p3cxx . . $ lemon/dim2/Bezier3#p3.,p4cxx . . $ lemon/dim2/Bezier3#p4.,t));
129 Pointcxx . . $ lemon/dim2/BezierBase#Point# a(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p,q,t));
130 Pointcxx . . $ lemon/dim2/BezierBase#Point# b(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(q,r,t));
131 Pointcxx . . $ lemon/dim2/BezierBase#Point# c(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(a,b,t));
132 return Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(p1cxx . . $ lemon/dim2/Bezier3#p1.,p,a,c);
133 }
134
135 Bezier3cxx . . $ lemon/dim2/Bezier3# aftercxx . . $ lemon/dim2/Bezier3#after(f9114825e86650aa).(double t) const
136 {
137 Pointcxx . . $ lemon/dim2/BezierBase#Point# p(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p1cxx . . $ lemon/dim2/Bezier3#p1.,p2cxx . . $ lemon/dim2/Bezier3#p2.,t));
138 Pointcxx . . $ lemon/dim2/BezierBase#Point# q(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p2cxx . . $ lemon/dim2/Bezier3#p2.,p3cxx . . $ lemon/dim2/Bezier3#p3.,t));
139 Pointcxx . . $ lemon/dim2/BezierBase#Point# r(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p3cxx . . $ lemon/dim2/Bezier3#p3.,p4cxx . . $ lemon/dim2/Bezier3#p4.,t));
140 Pointcxx . . $ lemon/dim2/BezierBase#Point# a(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(p,q,t));
141 Pointcxx . . $ lemon/dim2/BezierBase#Point# b(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(q,r,t));
142 Pointcxx . . $ lemon/dim2/BezierBase#Point# c(convcxx . . $ lemon/dim2/BezierBase#conv(7c008db592749cfb).(a,b,t));
143 return Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(c,b,r,p4cxx . . $ lemon/dim2/Bezier3#p4.);
144 }
145 Bezier3cxx . . $ lemon/dim2/Bezier3# revertcxx . . $ lemon/dim2/Bezier3#revert(e9beaab0ac99bb63).() const { return Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(p4cxx . . $ lemon/dim2/Bezier3#p4.,p3cxx . . $ lemon/dim2/Bezier3#p3.,p2cxx . . $ lemon/dim2/Bezier3#p2.,p1cxx . . $ lemon/dim2/Bezier3#p1.);}
146 Bezier3cxx . . $ lemon/dim2/Bezier3# operatorcxx . . $ lemon/dim2/Bezier3#`operator()`(fa5cfcc667f4261f).()(double a,double b) const { return beforecxx . . $ lemon/dim2/Bezier3#before(f9114825e86650aa).(b).aftercxx . . $ lemon/dim2/Bezier3#after(f9114825e86650aa).(a/b); }
147 Bezier2cxx . . $ lemon/dim2/Bezier2# gradcxx . . $ lemon/dim2/Bezier3#grad(172188e2cb932421).() const { return Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).(p2cxx . . $ lemon/dim2/Bezier3#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier3#p1.),3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).(p3cxx . . $ lemon/dim2/Bezier3#p3.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p2cxx . . $ lemon/dim2/Bezier3#p2.),3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).(p4cxx . . $ lemon/dim2/Bezier3#p4.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p3cxx . . $ lemon/dim2/Bezier3#p3.)); }
148 Bezier2cxx . . $ lemon/dim2/Bezier2# normcxx . . $ lemon/dim2/Bezier3#norm(172188e2cb932421).() const { return Bezier2cxx . . $ lemon/dim2/Bezier2#Bezier2(5b70d8716bbf39ee).(3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p2cxx . . $ lemon/dim2/Bezier3#p2.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p1cxx . . $ lemon/dim2/Bezier3#p1.),
149 3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p3cxx . . $ lemon/dim2/Bezier3#p3.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p2cxx . . $ lemon/dim2/Bezier3#p2.),
150 3.0*cxx . . $ lemon/dim2/`operator*`(8d11137f7d8c2a83).rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(p4cxx . . $ lemon/dim2/Bezier3#p4.-cxx . . $ lemon/dim2/Point#operator-(146eff5ca5f8e558).p3cxx . . $ lemon/dim2/Bezier3#p3.)); }
151 Pointcxx . . $ lemon/dim2/BezierBase#Point# gradcxx . . $ lemon/dim2/Bezier3#grad(6c0f637a93af82d).(double t) const { return gradcxx . . $ lemon/dim2/Bezier3#grad(172188e2cb932421).()(cxx . . $ lemon/dim2/Bezier2#`operator()`(6c0f637a93af82d).t); }
152 Pointcxx . . $ lemon/dim2/BezierBase#Point# normcxx . . $ lemon/dim2/Bezier3#norm(6c0f637a93af82d).(double t) const { return rot90cxx . . $ lemon/dim2/rot90(561af25a523f30ca).(gradcxx . . $ lemon/dim2/Bezier3#grad(6c0f637a93af82d).(t)); }
153
154 template<class R,class F,class S,class D>
155 R recSplitcxx . . $ lemon/dim2/Bezier3#recSplit(ebfb470d0114833d).(F &_f,const S &_s,D _d) const
156 {
157 const Pointcxx . . $ lemon/dim2/BezierBase#Point# a=(p1cxx . . $ lemon/dim2/Bezier3#p1.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).p2cxx . . $ lemon/dim2/Bezier3#p2.)/cxx . . $ lemon/dim2/Point#`operator/`(aeab0bde77751c4e).2;
158 const Pointcxx . . $ lemon/dim2/BezierBase#Point# b=(p2cxx . . $ lemon/dim2/Bezier3#p2.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).p3cxx . . $ lemon/dim2/Bezier3#p3.)/cxx . . $ lemon/dim2/Point#`operator/`(aeab0bde77751c4e).2;
159 const Pointcxx . . $ lemon/dim2/BezierBase#Point# c=(p3cxx . . $ lemon/dim2/Bezier3#p3.+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).p4cxx . . $ lemon/dim2/Bezier3#p4.)/cxx . . $ lemon/dim2/Point#`operator/`(aeab0bde77751c4e).2;
160 const Pointcxx . . $ lemon/dim2/BezierBase#Point# d=(a+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).b)/cxx . . $ lemon/dim2/Point#`operator/`(aeab0bde77751c4e).2;
161 const Pointcxx . . $ lemon/dim2/BezierBase#Point# e=(b+cxx . . $ lemon/dim2/Point#operator+(146eff5ca5f8e558).c)/cxx . . $ lemon/dim2/Point#`operator/`(aeab0bde77751c4e).2;
162 // const Point f=(d+e)/2;
163 R f1=_f(Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(p1cxx . . $ lemon/dim2/Bezier3#p1.,a,d,e),_d);
164 R f2=_f(Bezier3cxx . . $ lemon/dim2/Bezier3#Bezier3(accb7d1d6a087008).(e,d,c,p4cxx . . $ lemon/dim2/Bezier3#p4.),_d);
165 return _s(f1,f2);
166 }
167
168 };
169
170
171 } //END OF NAMESPACE dim2
172 } //END OF NAMESPACE lemon
173
174 #endif // LEMON_BEZIER_H