classutil_1_1MyMath.tex 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. \hypertarget{classutil_1_1MyMath}{}\section{util\+:\+:My\+Math Class Reference}
  2. \label{classutil_1_1MyMath}\index{util\+::\+My\+Math@{util\+::\+My\+Math}}
  3. {\ttfamily \#include $<$My\+Math.\+h$>$}
  4. \subsection*{Static Public Member Functions}
  5. \begin{DoxyCompactItemize}
  6. \item
  7. static double \hyperlink{classutil_1_1MyMath_a367a261dc52a85cc97ba376799ed13a3}{Clamp} (double min, double max, double value)
  8. \item
  9. static double \hyperlink{classutil_1_1MyMath_ae68f361889a9929767b0c85ad7a010f1}{Lerp} (double a, double b, double value)
  10. \item
  11. static double \hyperlink{classutil_1_1MyMath_a789c283b324494ab50955af1e35178d5}{Inverse\+Lerp} (double a, double b, double value)
  12. \item
  13. static double \hyperlink{classutil_1_1MyMath_abaf214b2fc7a31e43cf07245cf4b2e1f}{Euclidean\+Distance} (cv\+::\+Point3d a, cv\+::\+Point3d b)
  14. \end{DoxyCompactItemize}
  15. \subsection{Detailed Description}
  16. Utility class for mathematical operations.
  17. \subsection{Member Function Documentation}
  18. \index{util\+::\+My\+Math@{util\+::\+My\+Math}!Clamp@{Clamp}}
  19. \index{Clamp@{Clamp}!util\+::\+My\+Math@{util\+::\+My\+Math}}
  20. \subsubsection[{\texorpdfstring{Clamp(double min, double max, double value)}{Clamp(double min, double max, double value)}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+My\+Math\+::\+Clamp (
  21. \begin{DoxyParamCaption}
  22. \item[{double}]{min, }
  23. \item[{double}]{max, }
  24. \item[{double}]{value}
  25. \end{DoxyParamCaption}
  26. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1MyMath_a367a261dc52a85cc97ba376799ed13a3}{}\label{classutil_1_1MyMath_a367a261dc52a85cc97ba376799ed13a3}
  27. Clamps the value between min and max, both inclusive.
  28. \begin{DoxyParams}{Parameters}
  29. {\em min} & The minimum value \\
  30. \hline
  31. {\em max} & The maximum value \\
  32. \hline
  33. {\em value} & The value to clamp \\
  34. \hline
  35. \end{DoxyParams}
  36. \begin{DoxyReturn}{Returns}
  37. The clamped value
  38. \end{DoxyReturn}
  39. \index{util\+::\+My\+Math@{util\+::\+My\+Math}!Euclidean\+Distance@{Euclidean\+Distance}}
  40. \index{Euclidean\+Distance@{Euclidean\+Distance}!util\+::\+My\+Math@{util\+::\+My\+Math}}
  41. \subsubsection[{\texorpdfstring{Euclidean\+Distance(cv\+::\+Point3d a, cv\+::\+Point3d b)}{EuclideanDistance(cv::Point3d a, cv::Point3d b)}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+My\+Math\+::\+Euclidean\+Distance (
  42. \begin{DoxyParamCaption}
  43. \item[{cv\+::\+Point3d}]{a, }
  44. \item[{cv\+::\+Point3d}]{b}
  45. \end{DoxyParamCaption}
  46. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1MyMath_abaf214b2fc7a31e43cf07245cf4b2e1f}{}\label{classutil_1_1MyMath_abaf214b2fc7a31e43cf07245cf4b2e1f}
  47. Calculates the euclidean distance of the given points.
  48. \begin{DoxyParams}{Parameters}
  49. {\em a} & The first point in 3D space \\
  50. \hline
  51. {\em b} & The second point in 3D space \\
  52. \hline
  53. \end{DoxyParams}
  54. \begin{DoxyReturn}{Returns}
  55. The euclidean distance
  56. \end{DoxyReturn}
  57. \index{util\+::\+My\+Math@{util\+::\+My\+Math}!Inverse\+Lerp@{Inverse\+Lerp}}
  58. \index{Inverse\+Lerp@{Inverse\+Lerp}!util\+::\+My\+Math@{util\+::\+My\+Math}}
  59. \subsubsection[{\texorpdfstring{Inverse\+Lerp(double a, double b, double value)}{InverseLerp(double a, double b, double value)}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+My\+Math\+::\+Inverse\+Lerp (
  60. \begin{DoxyParamCaption}
  61. \item[{double}]{a, }
  62. \item[{double}]{b, }
  63. \item[{double}]{value}
  64. \end{DoxyParamCaption}
  65. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1MyMath_a789c283b324494ab50955af1e35178d5}{}\label{classutil_1_1MyMath_a789c283b324494ab50955af1e35178d5}
  66. Inverse linearly interpolates between a and b at value.
  67. \begin{DoxyParams}{Parameters}
  68. {\em a} & The first value \\
  69. \hline
  70. {\em b} & The second value \\
  71. \hline
  72. {\em value} & The value to get the interpolation of \\
  73. \hline
  74. \end{DoxyParams}
  75. \begin{DoxyReturn}{Returns}
  76. The interpolation value
  77. \end{DoxyReturn}
  78. \index{util\+::\+My\+Math@{util\+::\+My\+Math}!Lerp@{Lerp}}
  79. \index{Lerp@{Lerp}!util\+::\+My\+Math@{util\+::\+My\+Math}}
  80. \subsubsection[{\texorpdfstring{Lerp(double a, double b, double value)}{Lerp(double a, double b, double value)}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+My\+Math\+::\+Lerp (
  81. \begin{DoxyParamCaption}
  82. \item[{double}]{a, }
  83. \item[{double}]{b, }
  84. \item[{double}]{value}
  85. \end{DoxyParamCaption}
  86. )\hspace{0.3cm}{\ttfamily [static]}}\hypertarget{classutil_1_1MyMath_ae68f361889a9929767b0c85ad7a010f1}{}\label{classutil_1_1MyMath_ae68f361889a9929767b0c85ad7a010f1}
  87. Linearly interpolates between a and b at value.
  88. \begin{DoxyParams}{Parameters}
  89. {\em a} & The first value \\
  90. \hline
  91. {\em b} & The second value \\
  92. \hline
  93. {\em value} & The interpolation value \\
  94. \hline
  95. \end{DoxyParams}
  96. \begin{DoxyReturn}{Returns}
  97. The interpolated value
  98. \end{DoxyReturn}
  99. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  100. \item
  101. util/My\+Math.\+h\item
  102. util/My\+Math.\+cpp\end{DoxyCompactItemize}