Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IntTools / IntTools_SurfaceRangeSampleMapHasher.lxx
CommitLineData
7fd59977 1// File: IntTools_SurfaceRangeSampleMapHasher.lxx
2// Created: Fri Oct 14 20:56:50 2005
3// Author: Mikhail KLOKOV
4// <mkk@kurox>
5
6
7inline Standard_Integer IntTools_SurfaceRangeSampleMapHasher::HashCode(const IntTools_SurfaceRangeSample& K,
8 const Standard_Integer Upper) {
9// return (((K.GetDepthU() % Upper) ^ (K.GetDepthV() % Upper)) % Upper);
10 return ((K.GetIndexU() * K.GetIndexV()) % Upper);
11}
12
13inline Standard_Boolean IntTools_SurfaceRangeSampleMapHasher::IsEqual(const IntTools_SurfaceRangeSample& S1,
14 const IntTools_SurfaceRangeSample& S2) {
15 return S1.IsEqual(S2);
16}