-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathattribution.txt
executable file
·60 lines (40 loc) · 1.96 KB
/
attribution.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
////////////////////////////////////////////////
"How to constrain movement within the area of a circle"
http://stackoverflow.com/a/8528999
By http://stackoverflow.com/users/524555/duopixel
////////////////////////////////////////////////
"Change in mouse position when viewbox is added"
http://stackoverflow.com/a/11936865
By http://stackoverflow.com/users/109374/erik-dahlstr%C3%B6m
References:
http://www.codedread.com/blog/archives/2005/12/21/how-to-enable-dragging-in-svg/
Demo: http://www.codedread.com/dragtest.svg
////////////////////////////////////////////////
"SVG how to get the mouse position on the internal matrix"
http://stackoverflow.com/q/21852543
By http://stackoverflow.com/users/1310814/serverbloke
(also https://msdn.microsoft.com/en-us/library/hh535760(v=vs.85).aspx )
////////////////////////////////////////////////
"How to scale SVG image to fill browser window?"
http://stackoverflow.com/a/5644436
http://phrogz.net/svg/svg_in_xhtml5.xhtml
By http://stackoverflow.com/users/405017/phrogz
////////////////////////////////////////////////
Point class
https://github.com/moagrius/Point/blob/master/Point.js
////////////////////////////////////////////////
Basic collisions
http://devmag.org.za/2009/04/13/basic-collision-detection-in-2d-part-1/
http://devmag.org.za/2009/04/17/basic-collision-detection-in-2d-part-2/
////////////////////////////////////////////////
Test if point is on a line segment
http://stackoverflow.com/questions/328107/how-can-you-determine-a-point-is-between-two-other-points-on-a-line-segment/328193#328193
////////////////////////////////////////////////
Find intersections of a line segment and a circle
https://bl.ocks.org/milkbread/11000965
////////////////////////////////////////////////
How can I share code between Node.js and the browser?
http://stackoverflow.com/a/8420905
////////////////////////////////////////////////
"fat models, skinny controllers, stupid views"
http://softwareengineering.stackexchange.com/a/101865