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
|
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include<BALL/NMR/peak.h>
namespace BALL
{
template <>
bool Peak<Vector3>::operator < (const Peak<Vector3>& peak) const
{
return ((position_.x < peak.position_.x)
|| ((position_.x == peak.position_.x) &&
((position_.y < peak.position_.y)
|| ((position_.y == peak.position_.y) && (position_.z < peak.position_.z)))));
}
template <>
bool Peak<Vector3>::operator > (const Peak<Vector3>& peak) const
{
return ((position_.x > peak.position_.x)
|| ((position_.x == peak.position_.x) &&
((position_.y > peak.position_.y)
|| ((position_.y == peak.position_.y) && (position_.z > peak.position_.z)))));
}
} // namespace BALL
|