circular-mirror 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -27
- package/js/main.js +0 -0
- package/package.json +21 -4
- package/CONTRIBUTING.md +0 -66
- package/DOCUMENTATION.md +0 -164
- package/css/README.md +0 -1
- package/css/bg.png +0 -0
- package/css/bg2.png +0 -0
- package/css/caiuss.min.css +0 -4
- package/css/octicons/LICENSE.txt +0 -9
- package/css/octicons/octicons-local.ttf +0 -0
- package/css/octicons/octicons.css +0 -235
- package/css/octicons/octicons.eot +0 -0
- package/css/octicons/octicons.less +0 -233
- package/css/octicons/octicons.svg +0 -198
- package/css/octicons/octicons.ttf +0 -0
- package/css/octicons/octicons.woff +0 -0
- package/css/octicons/sprockets-octicons.scss +0 -230
- package/css/style.css +0 -16
- package/index.html +0 -46
- package/js/jquery-1.8.3.min.js +0 -9343
- package/js/jquery.min.js +0 -2628
- package/theory +0 -105
package/theory
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/*
|
|
3
|
-
|
|
4
|
-
^ y
|
|
5
|
-
│
|
|
6
|
-
B(xB, yB) │
|
|
7
|
-
,,ggddY""│""Ybbgg,,
|
|
8
|
-
,ag**** │ `""bg,
|
|
9
|
-
,gdP"* ********** "Ybg, C(xC, yC)
|
|
10
|
-
,dP" * │ ***********"*b,
|
|
11
|
-
,dP" * │ "Yb,
|
|
12
|
-
,8" * │ "8,
|
|
13
|
-
,8' * │ `8,
|
|
14
|
-
,8' * │ `8,
|
|
15
|
-
d' * │ `b
|
|
16
|
-
8 * │ 8
|
|
17
|
-
8* │«------- R ---------»8
|
|
18
|
-
─────*───────────────────────┼──────────────────────────────> x
|
|
19
|
-
*8 A (xA, yA) │ O (0, 0) 8
|
|
20
|
-
* 8 │ 8
|
|
21
|
-
* Y, │ ,P
|
|
22
|
-
* `8, │ ,8'
|
|
23
|
-
`8, │ ,8'
|
|
24
|
-
`8a │ a8'
|
|
25
|
-
`Yba │ adP'
|
|
26
|
-
"Yba │ adY"
|
|
27
|
-
`"Yba, │ ,adP"'
|
|
28
|
-
`"Y8ba, │ ,ad8P"'
|
|
29
|
-
``""YYbaa│adPP""''
|
|
30
|
-
│
|
|
31
|
-
│
|
|
32
|
-
|
|
33
|
-
==========================================================
|
|
34
|
-
THE THEORY OF THIS CIRCLE
|
|
35
|
-
==========================================================
|
|
36
|
-
One circle:
|
|
37
|
-
- Radius: R
|
|
38
|
-
- Center O(0, 0)
|
|
39
|
-
|
|
40
|
-
3 points: A, B, C:
|
|
41
|
-
- two known: A, B
|
|
42
|
-
- one that we have to find it
|
|
43
|
-
|
|
44
|
-
We know that they are point from the circle, so:
|
|
45
|
-
|
|
46
|
-
xA^2 + yA^2 = xB^2 + yB^2 = xC^2 + yC^2 = R^2
|
|
47
|
-
|
|
48
|
-
The length of AB is equal with BC and is L
|
|
49
|
-
|
|
50
|
-
Let's say that xC is x, and yC is y. We have the following system of equations:
|
|
51
|
-
|
|
52
|
-
/
|
|
53
|
-
| x ^ 2 + y ^ 2 = R ^ 2 (1)
|
|
54
|
-
| xB ^ 2 + yB ^ 2 = R ^ 2 (2)
|
|
55
|
-
| (x - xB) ^ 2 + (y - yB) ^ 2 = L ^ 2 (3)
|
|
56
|
-
\
|
|
57
|
-
|
|
58
|
-
(1) the equation of circle with radius R and center in O(0, 0) for x, y
|
|
59
|
-
(2) Same thing for xB, yB
|
|
60
|
-
(3) Equation of circle with radius L and center in xB.
|
|
61
|
-
|
|
62
|
-
==========================================================
|
|
63
|
-
SOLUTION
|
|
64
|
-
==========================================================
|
|
65
|
-
Finally we have:
|
|
66
|
-
|
|
67
|
-
k = 2R^2 - L^2
|
|
68
|
-
a = 4R^2
|
|
69
|
-
b = -4kyB
|
|
70
|
-
c = k^2 - R^2 * 4 * xB^2
|
|
71
|
-
|
|
72
|
-
------------------------
|
|
73
|
-
|
|
74
|
-
delta = b ^ 2 - 4ac
|
|
75
|
-
|
|
76
|
-
------------------------
|
|
77
|
-
++++++++++++++++++++++++
|
|
78
|
-
+ IF xB is not 0 +
|
|
79
|
-
++++++++++++++++++++++++
|
|
80
|
-
_______
|
|
81
|
-
- b ± √ delta
|
|
82
|
-
y = ─────────────────────
|
|
83
|
-
2a
|
|
84
|
-
|
|
85
|
-
k - 2yyB
|
|
86
|
-
x = ─────────────────────
|
|
87
|
-
2xB
|
|
88
|
-
|
|
89
|
-
------------------------
|
|
90
|
-
++++++++++++++++++++++++
|
|
91
|
-
+ IF xB is 0 +
|
|
92
|
-
++++++++++++++++++++++++
|
|
93
|
-
|
|
94
|
-
k
|
|
95
|
-
y = ────────
|
|
96
|
-
2yB
|
|
97
|
-
____________
|
|
98
|
-
/ k
|
|
99
|
-
x = \ / R^2 - ─────
|
|
100
|
-
\/ 4R
|
|
101
|
-
|
|
102
|
-
==========================================================
|
|
103
|
-
AND THAT'S IT!
|
|
104
|
-
==========================================================
|
|
105
|
-
*/
|