MinMax.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_MATH_MINMAX_H
17 #define SURGSIM_MATH_MINMAX_H
18 
19 namespace SurgSim
20 {
21 namespace Math
22 {
29 template <class T>
30 void minMax(const T& a1, const T& a2, T* minVal, T* maxVal);
31 
39 template <class T>
40 void minMax(const T& a1, const T& a2, const T& a3, T* minVal, T* maxVal);
41 
50 template <class T>
51 void minMax(const T& a1, const T& a2, const T& a3, const T& a4, T* minVal, T* maxVal);
52 
62 template <class T>
63 void minMax(const T& a1, const T& a2, const T& a3, const T& a4, const T& a5, T* minVal, T* maxVal);
64 
71 template <class T>
72 void minMax(const T* values, int numValues, T* minVal, T* maxVal);
73 };
74 };
75 
77 
78 #endif // SURGSIM_MATH_MINMAX_H
MinMax-inl.h
SurgSim
Definition: CompoundShapeToGraphics.cpp:30
SurgSim::Math::minMax
void minMax(const T &a1, const T &a2, T *minVal, T *maxVal)
Calculate the minimum and maximum of two values.
Definition: MinMax-inl.h:27