1
// Wild Magic Source Code
3
// http://www.geometrictools.com
4
// Copyright (c) 1998-2007
6
// This library is free software; you can redistribute it and/or modify it
7
// under the terms of the GNU Lesser General Public License as published by
8
// the Free Software Foundation; either version 2.1 of the License, or (at
9
// your option) any later version. The license is available for reading at
10
// either of the locations:
11
// http://www.gnu.org/copyleft/lgpl.html
12
// http://www.geometrictools.com/License/WildMagicLicense.pdf
13
// The license applies to versions 0 through 4 of Wild Magic.
15
// Version: 4.0.0 (2006/06/28)
17
//----------------------------------------------------------------------------
18
inline TriangleKey::TriangleKey (int iV0, int iV1, int iV2)
55
//----------------------------------------------------------------------------
56
inline bool TriangleKey::operator< (const TriangleKey& rkKey) const
58
if (V[2] < rkKey.V[2])
63
if (V[2] > rkKey.V[2])
68
if (V[1] < rkKey.V[1])
73
if (V[1] > rkKey.V[1])
78
return V[0] < rkKey.V[0];
80
//----------------------------------------------------------------------------
81
inline TriangleKey::operator size_t () const
83
return V[0] | (V[1] << 10) | (V[2] << 20);
85
//----------------------------------------------------------------------------