projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge hv v6, rework trace methods
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
clip.h
diff --git
a/cinelerra-5.1/guicast/clip.h
b/cinelerra-5.1/guicast/clip.h
index d9b64fa1694c6d9fc3e6e98935d547705e7fa1f1..8a7d5c3b72284b9963fdeae59d76fae1d10cd5de 100644
(file)
--- a/
cinelerra-5.1/guicast/clip.h
+++ b/
cinelerra-5.1/guicast/clip.h
@@
-40,6
+40,7
@@
#undef DISTANCE
#define DISTANCE(x1, y1, x2, y2) \
(sqrt(((x2) - (x1)) * ((x2) - (x1)) + ((y2) - (y1)) * ((y2) - (y1))))
-
+#define TO_RAD(x) ((x) * 2 * M_PI / 360)
+#define TO_DEG(x) ((x) * 360 / 2 / M_PI)
#endif