75 Vec2f(
const osg::Vec2f &v);
82 Vec2f(
const osg::Vec2d &v);
87 const osg::Vec2f& GetOSGVector()
const;
158 std::string
ToString(
int precision = -1);
183 void operator = (
const Vec2f& v);
188 void operator = (
const Vec2d& v);
193 void operator = (
const osg::Vec2f& v);
208 bool operator < (
const Vec2f& v)
const;
213 bool operator > (
const Vec2f& v)
const;
254 const Vec2f operator - (
const Vec2f& rhs)
const;
264 const Vec2f operator - ()
const;
269 operator osg::Vec2f()
const;
274 operator osg::Vec2f& ();
279 operator const osg::Vec2f& ()
const;
284 operator osg::Vec2f* ();
std::string operator+(const std::string &s1, const RefStr &s2)
General purpose 2D float Vector.
TR_BASE_EXPORT Vec2f ComponentDivide(const Vec2f &lhs, const Vec2f &rhs)
Divide rhs components by rhs vector components.
bool operator==(const std::string &s1, const RefStr &s2)
bool operator!=(const std::string &s1, const RefStr &s2)
General purpose 2D double Vector.
float 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 Vec2f ComponentMultiply(const Vec2f &lhs, const Vec2f &rhs)
Multiply individual vector components.
static const int NUM_OF_COMPONENTS
T Lerp(T from, T to, T alpha)
Linear Interpolation function.
TR_BASE_EXPORT std::ostream & operator<<(std::ostream &ios, const Vec2f &vec)
Stream insertion operator.