Lines Matching refs:line
99 void Impl_calcFatLine( FatLine& line, const Bezier& c ) in Impl_calcFatLine() argument
105 line.a = -(c.p0.y - c.p3.y); in Impl_calcFatLine()
106 line.b = (c.p0.x - c.p3.x); in Impl_calcFatLine()
109 const double len( sqrt( line.a*line.a + line.b*line.b ) ); in Impl_calcFatLine()
112 line.a /= len; in Impl_calcFatLine()
113 line.b /= len; in Impl_calcFatLine()
116 line.c = -(line.a*c.p0.x + line.b*c.p0.y); in Impl_calcFatLine()
123 const double dP2( calcLineDistance(line.a, line.b, line.c, c.p1.x, c.p1.y ) ); in Impl_calcFatLine()
124 const double dP3( calcLineDistance(line.a, line.b, line.c, c.p2.x, c.p2.y ) ); in Impl_calcFatLine()
131 line.dMin = 3.0/4.0 * ::std::min(0.0, ::std::min(dP2, dP3)); in Impl_calcFatLine()
132 line.dMax = 3.0/4.0 * ::std::max(0.0, ::std::max(dP2, dP3)); in Impl_calcFatLine()
136 line.dMin = 4.0/9.0 * ::std::min(0.0, ::std::min(dP2, dP3)); in Impl_calcFatLine()
137 line.dMax = 4.0/9.0 * ::std::max(0.0, ::std::max(dP2, dP3)); in Impl_calcFatLine()
1508 FatLine line; in main() local
1510 Impl_calcFatLine(line, c); in main()
1521 << line.a << "," in main()
1522 << line.b << "," in main()
1523 << line.c << ",t), liney(" in main()
1524 << line.a << "," in main()
1525 << line.b << "," in main()
1526 << line.c << ",t) title \"fat line (center) on " << i << "\", linex(" in main()
1527 << line.a << "," in main()
1528 << line.b << "," in main()
1529 << line.c-line.dMin << ",t), liney(" in main()
1530 << line.a << "," in main()
1531 << line.b << "," in main()
1532 << line.c-line.dMin << ",t) title \"fat line (min) on " << i << "\", linex(" in main()
1533 << line.a << "," in main()
1534 << line.b << "," in main()
1535 << line.c-line.dMax << ",t), liney(" in main()
1536 << line.a << "," in main()
1537 << line.b << "," in main()
1538 << line.c-line.dMax << ",t) title \"fat line (max) on " << i << "\""; in main()