Elevate lerp to 64 bits
For long lines, the linear interpolation for the current position could overflow. This is the reason the length resolution is currently so small, which sets a limit on the minimum pen speed. This change introduces two 64-bit divisions, but allows for a larger length resolution and lower pen speeds. The runtime is still pretty minimal.
This commit is contained in:
parent
cf1514262e
commit
7831fd9b34
2 changed files with 9 additions and 5 deletions
|
|
@ -1 +1 @@
|
|||
333
|
||||
337
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue