Changeset 1084:320a0f083ca1 in lemon0.x
 Timestamp:
 01/16/05 23:31:26 (15 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1480
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/lemon/bezier.h
r1073 r1084 22 22 ///\brief Classes to compute with Bezier curves. 23 23 /// 24 ///Up to now this file is internally usedby \ref graph_to_eps.h24 ///Up to now this file is used internally by \ref graph_to_eps.h 25 25 /// 26 26 ///\author Alpar Juttner … … 59 59 return Bezier1(conv(p1,p2,t),p2); 60 60 } 61 Bezier1 operator()(double a,double b) { return before(b).after(a/b); } 61 Bezier1 revert() { return Bezier1(p2,p1);} 62 Bezier1 operator()(double a,double b) { return before(b).after(a/b); } 63 xy grad() { return p2p1; } 64 xy grad(double t) { return grad(); } 65 62 66 }; 63 67 … … 88 92 return Bezier2(conv(q,r,t),r,p3); 89 93 } 94 Bezier2 revert() { return Bezier2(p3,p2,p1);} 90 95 Bezier2 operator()(double a,double b) { return before(b).after(a/b); } 91 96 Bezier1 grad() { return Bezier1(2.0*(p2p1),2.0*(p3p2)); } 97 xy grad(double t) { return grad()(t); } 92 98 }; 93 99 … … 131 137 return Bezier3(c,b,r,p4); 132 138 } 139 Bezier3 revert() { return Bezier3(p4,p3,p2,p1);} 133 140 Bezier3 operator()(double a,double b) { return before(b).after(a/b); } 134 141 Bezier2 grad() { return Bezier2(3.0*(p2p1),3.0*(p3p2),3.0*(p4p3)); } 142 xy grad(double t) { return grad()(t); } 135 143 }; 136 144
Note: See TracChangeset
for help on using the changeset viewer.