1
0
forked from HEL/circuiteria

improved wire arguments

This commit is contained in:
2025-04-19 15:56:20 +02:00
parent 4930b53c84
commit 3e9272255c
7 changed files with 90 additions and 50 deletions

View File

@@ -73,4 +73,11 @@
#let valid-anchors = (
"center", "north", "east", "west", "south",
"north-east", "north-west", "south-east", "south-west"
)
)
#let lerp(pt0, ratio, pt1) = {
return (
(pt1.at(0) - pt0.at(0)) * ratio / 100% + pt0.at(0),
(pt1.at(1) - pt0.at(1)) * ratio / 100% + pt0.at(1)
)
}