osg::Vec2d Class Reference
General purpose double pair, uses include representation of texture coordinates.
More...
List of all members.
Detailed Description
General purpose double pair, uses include representation of texture coordinates.
No support yet added for double * Vec2d - is it necessary? Need to define a non-member non-friend operator* etc. BTW: Vec2d * double is okay
Member Typedef Documentation
Member Enumeration Documentation
Number of vector components.
- Enumerator:
-
Constructor & Destructor Documentation
osg::Vec2d::Vec2d |
( |
|
) |
[inline] |
osg::Vec2d::Vec2d |
( |
const Vec2f & |
vec |
) |
[inline] |
Member Function Documentation
bool osg::Vec2d::isNaN |
( |
|
) |
const [inline] |
Length of the vector = sqrt( vec .
vec )
References _v.
Referenced by normalize().
value_type osg::Vec2d::length2 |
( |
void |
|
) |
const [inline] |
Length squared of the vector = vec .
vec
References _v.
Normalize the vector so that it has length unity.
Returns the previous length of the vector.
References _v, and length().
osg::Vec2d::operator Vec2f |
( |
|
) |
const [inline] |
bool osg::Vec2d::operator!= |
( |
const Vec2d & |
v |
) |
const [inline] |
Multiply by scalar.
References _v, and Vec2d().
Dot product.
References _v.
Unary multiply by scalar.
References _v.
const Vec2d osg::Vec2d::operator+ |
( |
const Vec2d & |
rhs |
) |
const [inline] |
Binary vector add.
References _v, and Vec2d().
Vec2d& osg::Vec2d::operator+= |
( |
const Vec2d & |
rhs |
) |
[inline] |
Unary vector add.
Slightly more efficient because no temporary intermediate object.
References _v.
const Vec2d osg::Vec2d::operator- |
( |
|
) |
const [inline] |
Negation operator.
Returns the negative of the Vec2d.
References _v, and Vec2d().
const Vec2d osg::Vec2d::operator- |
( |
const Vec2d & |
rhs |
) |
const [inline] |
Binary vector subtract.
References _v, and Vec2d().
Vec2d& osg::Vec2d::operator-= |
( |
const Vec2d & |
rhs |
) |
[inline] |
Unary vector subtract.
References _v.
Divide by scalar.
References _v, and Vec2d().
Unary divide by scalar.
References _v.
bool osg::Vec2d::operator< |
( |
const Vec2d & |
v |
) |
const [inline] |
bool osg::Vec2d::operator== |
( |
const Vec2d & |
v |
) |
const [inline] |
value_type osg::Vec2d::operator[] |
( |
int |
i |
) |
const [inline] |
value_type& osg::Vec2d::operator[] |
( |
int |
i |
) |
[inline] |
const value_type* osg::Vec2d::ptr |
( |
|
) |
const [inline] |
bool osg::Vec2d::valid |
( |
|
) |
const [inline] |
References _v.
Referenced by set().
References _v.
Referenced by set().
Member Data Documentation
Referenced by isNaN(), length(), length2(), normalize(), operator Vec2f(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), osg::operator<<(), operator==(), osg::operator>>(), operator[](), ptr(), set(), Vec2d(), x(), and y().
The documentation for this class was generated from the following file: