forked from HEL/circuiteria
improved wire arguments
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user