Skip to content

Instantly share code, notes, and snippets.

@alexesDev
Created September 24, 2012 09:12
Show Gist options
  • Select an option

  • Save alexesDev/3775068 to your computer and use it in GitHub Desktop.

Select an option

Save alexesDev/3775068 to your computer and use it in GitHub Desktop.
struct MapVector3
{
Ogre::Vector3 point;
MapVector3(const Ogre::Vector3 &_point) : point(_point) {}
bool operator<( const MapVector3 &rhs ) const
{
if( point.x < rhs.point.x )
return true;
else if( point.x == rhs.point.x )
{
if( point.y < rhs.point.y )
return true;
else if( point.y == rhs.point.y )
return (point.z < rhs.point.z);
else
return false;
}
else
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment