Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1006962 // closerControlPoint - move control point of a quad curve closer to middle of straight line

JavaX fragment (include)

1  
static Pt closerControlPoint(Pt a, Pt b, Pt c) {
2  
  ret blendPoints(avgPoint(a, c), b, 0.5f);
3  
}

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: #1006962
Snippet name: closerControlPoint - move control point of a quad curve closer to middle of straight line
Eternal ID of this version: #1006962/1
Text MD5: 5f96897ad211120c276a354b713f1aab
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-21 11:27:57
Source code size: 96 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 544 / 540
Referenced in: [show references]