Move from poly-cool to polycool (#3309)

This commit is contained in:
jneem
2025-10-24 22:12:01 +00:00
committed by GitHub
parent c4f6a2c9c1
commit 3a80560a68
4 changed files with 7 additions and 7 deletions
Generated
+4 -4
View File
@@ -2109,7 +2109,7 @@ dependencies = [
"num-traits", "num-traits",
"parley", "parley",
"petgraph 0.7.1", "petgraph 0.7.1",
"poly-cool", "polycool",
"rand 0.9.2", "rand 0.9.2",
"rand_chacha 0.9.0", "rand_chacha 0.9.0",
"rustc-hash 2.1.1", "rustc-hash 2.1.1",
@@ -4191,10 +4191,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
[[package]] [[package]]
name = "poly-cool" name = "polycool"
version = "0.3.2" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8370a553db72b99cd797d84e98f4f3a43bc7b57a3d9f0c9f095cbb24683694c1" checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
] ]
+1 -1
View File
@@ -194,7 +194,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing = "0.1" tracing = "0.1"
rfd = "0.15" rfd = "0.15"
open = "5.3" open = "5.3"
poly-cool = "0.3" polycool = "0.4"
spin = "0.10" spin = "0.10"
clap = "4.5" clap = "4.5"
spirv-std = { git = "https://github.com/Firestar99/rust-gpu-new", rev = "c12f216121820580731440ee79ebc7403d6ea04f", features = ["bytemuck"] } spirv-std = { git = "https://github.com/Firestar99/rust-gpu-new", rev = "c12f216121820580731440ee79ebc7403d6ea04f", features = ["bytemuck"] }
+1 -1
View File
@@ -39,7 +39,7 @@ kurbo = { workspace = true }
lyon_geom = { workspace = true } lyon_geom = { workspace = true }
log = { workspace = true } log = { workspace = true }
base64 = { workspace = true } base64 = { workspace = true }
poly-cool = { workspace = true } polycool = { workspace = true }
# Optional workspace dependencies # Optional workspace dependencies
serde = { workspace = true, optional = true } serde = { workspace = true, optional = true }
@@ -249,7 +249,7 @@ pub fn pathseg_normals_to_point(segment: PathSeg, point: Point) -> Vec<f64> {
let y = y.coefficients_mut(); let y = y.coefficients_mut();
x[0] -= point.x; x[0] -= point.x;
y[0] -= point.y; y[0] -= point.y;
let poly = poly_cool::Poly::new([ let poly = polycool::Poly::new([
x[0] * x[1] + y[0] * y[1], 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]), 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]), 3. * (x[2] * x[1] + y[2] * y[1]) + 3. * (x[0] * x[3] + y[0] * y[3]),