Move from poly-cool to polycool (#3309)

This commit is contained in:
jneem
2025-10-24 17:12:01 -05:00
committed by GitHub
parent c4f6a2c9c1
commit 3a80560a68
4 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ kurbo = { workspace = true }
lyon_geom = { workspace = true }
log = { workspace = true }
base64 = { workspace = true }
poly-cool = { workspace = true }
polycool = { workspace = true }
# Optional workspace dependencies
serde = { workspace = true, optional = true }

View File

@@ -249,7 +249,7 @@ pub fn pathseg_normals_to_point(segment: PathSeg, point: Point) -> Vec<f64> {
let y = y.coefficients_mut();
x[0] -= point.x;
y[0] -= point.y;
let poly = poly_cool::Poly::new([
let poly = polycool::Poly::new([
x[0] * x[1] + y[0] * y[1],
x[1] * x[1] + y[1] * y[1] + 2. * (x[0] * x[2] + y[0] * y[2]),
3. * (x[2] * x[1] + y[2] * y[1]) + 3. * (x[0] * x[3] + y[0] * y[3]),