| 181 | } |
| 182 | |
| 183 | void Path2d::quadTo( const vec2 &p1, const vec2 &p2 ) |
| 184 | { |
| 185 | if( mPoints.empty() ) |
| 186 | throw Path2dExc(); // can only quadTo as non-first point |
| 187 | |
| 188 | mPoints.push_back( p1 ); |
| 189 | mPoints.push_back( p2 ); |
| 190 | mSegments.push_back( QUADTO ); |
| 191 | } |
| 192 | |
| 193 | void Path2d::smoothQuadTo( const vec2 &p2 ) |
| 194 | { |
no test coverage detected