1
/////////////////////////////////////////////////////////////
3
// Copyright (c) 2007-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
11
/////////////////////////////////////////////////////////////
16
const Vector3 Vector3::ZERO = Vector3(0.0, 0.0, 0.0);
18
bool Vector3::operator<(const Vector3& rhs) const
22
if(data[0]!=rhs.data[0]) {
23
res=data[0]<rhs.data[0];
24
} else if(data[1]!=rhs.data[1]){
25
res=data[1]<rhs.data[1];
26
} else if(data[2]!=rhs.data[2]){
27
res=data[2]<rhs.data[2];