summaryrefslogtreecommitdiff
path: root/src/math/math_CompareOfValueAndWeight.cxx
blob: fd705a859334ed54bda789986699ce5868e899e8 (plain)
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
// File:	math_CompareOfValueAndWeight.cxx
// Created:	Tue Dec 20 13:30:54 2005
// Author:	Julia GERASIMOVA
//		<jgv@clubox>


#include <math_CompareOfValueAndWeight.ixx>

// -----------
// Create :
// -----------
math_CompareOfValueAndWeight::math_CompareOfValueAndWeight()
{
}

// -----------
// IsLower :
// -----------
Standard_Boolean math_CompareOfValueAndWeight::IsLower(const math_ValueAndWeight& Left,
						       const math_ValueAndWeight& Right) const
{
  return (Left.Value() < Right.Value());
}

// -----------
// IsGreater :
// -----------
Standard_Boolean math_CompareOfValueAndWeight::IsGreater(const math_ValueAndWeight& Left,
							 const math_ValueAndWeight& Right) const
{
  return (Left.Value() > Right.Value());
}

// -----------
// IsEqual :
// -----------
Standard_Boolean math_CompareOfValueAndWeight::IsEqual(const math_ValueAndWeight& Left,
						       const math_ValueAndWeight& Right) const
{
  return (Left.Value() == Right.Value());
}