|
@@ -708,11 +708,11 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
var cxp = q * rx * y1p / ry;
|
|
|
var cyp = - q * ry * x1p / rx;
|
|
|
|
|
|
- // Step 3: Compute (cx, cy) from (cxâ², cyâ²)
|
|
|
+ // Step 3: Compute (cx, cy) from (cx', cy')
|
|
|
var cx = Math.cos( x_axis_rotation ) * cxp - Math.sin( x_axis_rotation ) * cyp + ( start.x + end.x ) / 2;
|
|
|
var cy = Math.sin( x_axis_rotation ) * cxp + Math.cos( x_axis_rotation ) * cyp + ( start.y + end.y ) / 2;
|
|
|
|
|
|
- // Step 4: Compute θ1 and Îθ
|
|
|
+ // Step 4: Compute θ1 and Δθ
|
|
|
var theta = svgAngle( 1, 0, ( x1p - cxp ) / rx, ( y1p - cyp ) / ry );
|
|
|
var delta = svgAngle( ( x1p - cxp ) / rx, ( y1p - cyp ) / ry, ( - x1p - cxp ) / rx, ( - y1p - cyp ) / ry ) % ( Math.PI * 2 );
|
|
|
|