54 if (
_v[0]<v.
_v[0])
return true;
55 else if (
_v[0]>v.
_v[0])
return false;
56 else if (
_v[1]<v.
_v[1])
return true;
57 else if (
_v[1]>v.
_v[1])
return false;
58 else if (
_v[2]<v.
_v[2])
return true;
59 else if (
_v[2]>v.
_v[2])
return false;
60 else return (
_v[3]<v.
_v[3]);
123 float div = 1.0f/rhs;
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec4b operator+(const Vec4b &rhs) const
Binary vector add.
Definition Vec4b:129
signed char value_type
Data type of vector components.
Definition Vec4b:30
value_type x() const
Definition Vec4b:79
value_type & y()
Definition Vec4b:75
bool operator!=(const Vec4b &v) const
Definition Vec4b:50
@ num_components
Definition Vec4b:33
value_type & b()
Definition Vec4b:86
value_type & a()
Definition Vec4b:87
value_type r() const
Definition Vec4b:89
Vec4b & operator*=(float rhs)
Unary multiply by scalar.
Definition Vec4b:103
Vec4b operator/(float rhs) const
Divide by scalar.
Definition Vec4b:113
value_type & w()
Definition Vec4b:77
void set(value_type x, value_type y, value_type z, value_type w)
Definition Vec4b:66
value_type & r()
Definition Vec4b:84
value_type * ptr()
Definition Vec4b:63
bool operator==(const Vec4b &v) const
Definition Vec4b:48
value_type & g()
Definition Vec4b:85
value_type y() const
Definition Vec4b:80
value_type a() const
Definition Vec4b:92
Vec4b operator*(float rhs) const
Multiply by scalar.
Definition Vec4b:95
value_type & x()
Definition Vec4b:74
const value_type * ptr() const
Definition Vec4b:64
Vec4b(value_type x, value_type y, value_type z, value_type w)
Definition Vec4b:40
Vec4b operator-(const Vec4b &rhs) const
Binary vector subtract.
Definition Vec4b:148
value_type b() const
Definition Vec4b:91
value_type g() const
Definition Vec4b:90
value_type & operator[](unsigned int i)
Definition Vec4b:71
value_type w() const
Definition Vec4b:82
value_type & z()
Definition Vec4b:76
Vec4b & operator/=(float rhs)
Unary divide by scalar.
Definition Vec4b:121
Vec4b & operator-=(const Vec4b &rhs)
Unary vector subtract.
Definition Vec4b:155
value_type z() const
Definition Vec4b:81
bool operator<(const Vec4b &v) const
Definition Vec4b:52
Vec4b()
Constructor that sets all components of the vector to zero.
Definition Vec4b:38
Vec4b & operator+=(const Vec4b &rhs)
Unary vector add.
Definition Vec4b:138
value_type _v[4]
Definition Vec4b:35