1 | static Pt un_closerControlPoint(Pt a, Pt b, Pt c) { |
2 | // b = (b_orig+middle)/2 |
3 | // 2b = b_orig+middle |
4 | // b_orig = 2b-middle |
5 | ret blendPoints(b, 2f, avgPoint(a, c), -1f); |
6 | } |
Began life as a copy of #1006962
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006987 |
Snippet name: | un_closerControlPoint - move control point of a quad curve further away from middle of straight line |
Eternal ID of this version: | #1006987/1 |
Text MD5: | 0c9b37324911e4dece7af7b5cd50d97a |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-22 00:34:40 |
Source code size: | 180 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 514 / 537 |
Referenced in: | [show references] |