inline helps by 20% for svg
This commit is contained in:
parent
a38cd2adad
commit
de9ef9af4f
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ proc segment*(at, to: Vec2): Segment =
|
||||||
result.at = at
|
result.at = at
|
||||||
result.to = to
|
result.to = to
|
||||||
|
|
||||||
proc intersects*(a, b: Segment, at: var Vec2): bool =
|
proc intersects*(a, b: Segment, at: var Vec2): bool {.inline.} =
|
||||||
## Checks if the a segment intersects b segment.
|
## Checks if the a segment intersects b segment.
|
||||||
## If it returns true, at will have point of intersection
|
## If it returns true, at will have point of intersection
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue