66 Vec2s(
const osg::Vec2s &v);
71 const osg::Vec2s& GetOSGVector()
const;
142 std::string
ToString(
int precision = -1);
167 void operator = (
const Vec2s& v);
172 void operator = (
const osg::Vec2s& v);
187 bool operator < (
const Vec2s& v)
const;
192 bool operator > (
const Vec2s& v)
const;
233 const Vec2s operator - (
const Vec2s& rhs)
const;
243 const Vec2s operator - ()
const;
248 operator osg::Vec2s()
const;
253 operator osg::Vec2s& ();
258 operator const osg::Vec2s& ()
const;
263 operator osg::Vec2s* ();
std::string operator+(const std::string &s1, const RefStr &s2)
bool operator==(const std::string &s1, const RefStr &s2)
bool operator!=(const std::string &s1, const RefStr &s2)
TR_BASE_EXPORT std::ostream & operator<<(std::ostream &ios, const Matrixd &q)
Stream insertion operator.
General purpose 2D short Vector.
short value_type
Data type of vector components.
std::string ToString(const T &t, int precision=-1)
A utility function to convert a basic type into a string.
TR_BASE_EXPORT Vec2b ComponentDivide(const Vec2b &lhs, const Vec2b &rhs)
Divide rhs components by rhs vector components.
TR_BASE_EXPORT Vec2b ComponentMultiply(const Vec2b &lhs, const Vec2b &rhs)
Multiply individual vector components.
T Lerp(T from, T to, T alpha)
Linear Interpolation function.
static const int NUM_OF_COMPONENTS