-
curve1 10
-
- curveE 5
+ curveE 20
-
curve2 10
-
if ($jp =~ m/^curveE$/) {
my $angle = ($jt + 1) * TAU/2 - $slope_angle;
- $j_x = $j_p_x + $i_thick * cos($angle);
- $j_y = $j_p_y + $i_thick * sin($angle);
+ $j_x = $j_p_x + $i_thick/2 * cos($angle);
+ $j_y = $j_p_y + $i_thick/2 * sin($angle);
} elsif ($jp =~ m/^curve[12]$/) {
my $angle = $slope_angle * ($jp =~ m/1/ ? $jt : (1-$jt));
my $outwards = $jp =~ m/1/ ? -1 : +1;
- $j_x = $j_qrc_x + cos($angle) * ($jcurverad + $outwards * $i_thick);
- $j_y = $j_qrc_y + sin($angle) * ($jcurverad + $outwards * $i_thick);
+ $j_x = $j_qrc_x + cos($angle) * ($jcurverad + $outwards * $i_thick/2);
+ $j_y = $j_qrc_y - sin($angle) * ($jcurverad + $outwards * $i_thick/2);
} elsif ($jp =~ m/^lin0$/) {
- $j_x = $j_rs_x + $i_thick * (-0.5 + 0.5 * $jt);
+ $j_x = $j_rs_x + $i_thick * (+0.5 - $jt);
$j_y = $j_s_y;
} else {
die "$jp ?";