00001 // Filename: geomTransformer.I 00002 // Created by: drose (14Mar02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: GeomTransformer::SourceVertices::Ordering Operator 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE bool GeomTransformer::SourceVertices:: 00026 operator < (const GeomTransformer::SourceVertices &other) const { 00027 if (_coords != other._coords) { 00028 return _coords < other._coords; 00029 } 00030 return (_mat.compare_to(other._mat) < 0); 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function: GeomTransformer::SourceNormals::Ordering Operator 00035 // Access: Public 00036 // Description: 00037 //////////////////////////////////////////////////////////////////// 00038 INLINE bool GeomTransformer::SourceNormals:: 00039 operator < (const GeomTransformer::SourceNormals &other) const { 00040 if (_norms != other._norms) { 00041 return _norms < other._norms; 00042 } 00043 return (_mat.compare_to(other._mat) < 0); 00044 } 00045 00046 //////////////////////////////////////////////////////////////////// 00047 // Function: GeomTransformer::SourceTexCoords::Ordering Operator 00048 // Access: Public 00049 // Description: 00050 //////////////////////////////////////////////////////////////////// 00051 INLINE bool GeomTransformer::SourceTexCoords:: 00052 operator < (const GeomTransformer::SourceTexCoords &other) const { 00053 if (_texcoords != other._texcoords) { 00054 return _texcoords < other._texcoords; 00055 } 00056 return (_mat.compare_to(other._mat) < 0); 00057 } 00058 00059 //////////////////////////////////////////////////////////////////// 00060 // Function: GeomTransformer::SourceColors::Ordering Operator 00061 // Access: Public 00062 // Description: 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE bool GeomTransformer::SourceColors:: 00065 operator < (const GeomTransformer::SourceColors &other) const { 00066 if (_colors != other._colors) { 00067 return _colors < other._colors; 00068 } 00069 return (_scale.compare_to(other._scale) < 0); 00070 }