mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-25 17:42:46 +02:00
image regeneration
This commit is contained in:
@@ -78,8 +78,8 @@ getRealCurve(S, E, angle) {
|
||||
const f = 4/3 * tan(angle/4);
|
||||
const C1 = { x: w/2 + r, y: h/2 + r * f };
|
||||
const C2 = {
|
||||
x: w/2 + r * ( cos(angle) + f * sin(angle) ),
|
||||
y: h/2 + r * ( sin(angle) - f * cos(angle) )
|
||||
x: w/2 + r * (cos(angle) + f * sin(angle)),
|
||||
y: h/2 + r * (sin(angle) - f * cos(angle))
|
||||
};
|
||||
return new Bezier(this, [S, C1, C2, E]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user