static Point blendPoints(Point x, Point y, double yish) { double xish = 1-yish; ret new Point((int) (x.x*xish+y.x*yish), (int) (x.y*xish+y.y*yish)); } static Pt blendPoints(Pt x, Pt y, double yish) { double xish = 1-yish; ret new Pt((int) (x.x*xish+y.x*yish), (int) (x.y*xish+y.y*yish)); } static Pt blendPoints(Pt x, double xf, Pt y, double yf) { ret new Pt((int) (x.x*xf+y.x*yf), (int) (x.y*xf+y.y*yf)); } static Pt blendPoints(int x1, int y1, int x2, int y2, double yish) { ret blendPoints(new Pt(x1, y1), new Pt(x2, y2), yish); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005551 | 
| Snippet name: | blendPoints | 
| Eternal ID of this version: | #1005551/5 | 
| Text MD5: | 4e99f8365a7806f5fd36cbb9cb47f09e | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-03-15 01:14:48 | 
| Source code size: | 566 bytes / 17 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 827 / 810 | 
| Version history: | 4 change(s) | 
| Referenced in: | [show references] |