48 if (
_v[0]<v.
_v[0])
return true;
49 else if (
_v[0]>v.
_v[0])
return false;
50 else if (
_v[1]<v.
_v[1])
return true;
51 else if (
_v[1]>v.
_v[1])
return false;
52 else return (
_v[2]<v.
_v[2]);
115 float div = 1.0f/rhs;
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
value_type b() const
Definition Vec3b:85
value_type & r()
Definition Vec3b:79
bool operator!=(const Vec3b &v) const
Definition Vec3b:44
value_type g() const
Definition Vec3b:84
void set(const Vec3b &rhs)
Definition Vec3b:63
value_type z() const
Definition Vec3b:77
value_type & operator[](unsigned int i)
Definition Vec3b:68
Vec3b operator+(const Vec3b &rhs) const
Binary vector add.
Definition Vec3b:121
value_type x() const
Definition Vec3b:75
Vec3b & operator*=(float rhs)
Unary multiply by scalar.
Definition Vec3b:96
Vec3b operator-(const Vec3b &rhs) const
Binary vector subtract.
Definition Vec3b:139
Vec3b & operator-=(const Vec3b &rhs)
Unary vector subtract.
Definition Vec3b:146
const value_type * ptr() const
Definition Vec3b:56
value_type y() const
Definition Vec3b:76
value_type & y()
Definition Vec3b:72
Vec3b operator/(float rhs) const
Divide by scalar.
Definition Vec3b:105
value_type & z()
Definition Vec3b:73
bool operator==(const Vec3b &v) const
Definition Vec3b:42
Vec3b operator*(float rhs) const
Multiply by scalar.
Definition Vec3b:88
value_type & x()
Definition Vec3b:71
value_type * ptr()
Definition Vec3b:55
value_type r() const
Definition Vec3b:83
Vec3b & operator+=(const Vec3b &rhs)
Unary vector add.
Definition Vec3b:130
Vec3b & operator/=(float rhs)
Unary divide by scalar.
Definition Vec3b:113
bool operator<(const Vec3b &v) const
Definition Vec3b:46
value_type & b()
Definition Vec3b:81
Vec3b()
Constructor that sets all components of the vector to zero.
Definition Vec3b:38
value_type _v[3]
Definition Vec3b:35
@ num_components
Definition Vec3b:33
value_type & g()
Definition Vec3b:80
Vec3b(value_type r, value_type g, value_type b)
Definition Vec3b:40
signed char value_type
Data type of vector components.
Definition Vec3b:30
void set(value_type r, value_type g, value_type b)
Definition Vec3b:58