forked from dlwhittenbury/von-Mises-Fisher-Sampling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tangent-normal-decomp.tex
68 lines (46 loc) · 1.41 KB
/
tangent-normal-decomp.tex
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
60
61
62
63
64
65
66
67
68
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{60}{115}
\pgfplotsset{compat=newest}
\usepackage{scalefnt}
\begin{document}
{\scalefont{0.3}
\begin{tikzpicture}
% Ball
\shade[ball color = gray!40, opacity = 0.3] (0,0) circle (2cm);
% Outline of sphere
\draw (0,0) circle (2cm);
% Draw back arc swept out by the component perpendicular to mu
\draw[red,dashed] (1.5,1.3) arc (0:180:1.5 and 0.2) ;
% Front equator line
\draw (-2,0) arc (180:360:2 and 0.6);
% Back equator line
\draw[dashed] (2,0) arc (0:180:2 and 0.6);
% Circle at origin
\fill[fill=black] (0,0) circle (1pt);
% Radius
\draw[dashed] (0,0) -- node[below]{$r$} (2,0);
% Axes
\draw[thick,solid,-latex] (0,0) -- (0,2);
\draw[thick,solid,-latex] (0,2) -- (2,2);
% t
\draw[thick,solid,latex-latex] (-.15,0) -- (-.15,1.3);
\node at (-0.3,.7) {$t$};
% component perp to mu
\draw[thick,solid] (0,1.3) -- (1.53,1.3);
%\node at (.5,1.5) {$\sqrt{1-t^{2}}$};
% xi
\draw[thick,solid,-latex] (0,0) -- (1.53,1.3);
\node at (1.7,2.2) {$\xi$};
% X
\node at (1.7,1.3) {$x$};
% mu axis
\node at (-0.15,1.7) {$\mu$};
% xi axis
% Draw front arc swept out by the component perpendicular to mu
\draw[red] (-1.5,1.3) arc (180:360:1.5 and 0.2) ;
\end{tikzpicture}
}
\end{document}