openscenegraph
|
Public Types | |
enum | { num_components = 2 } |
typedef double | value_type |
Public Attributes | |
value_type | _v [2] |
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
typedef double osg::Vec2d::value_type |
Data type of vector components.
|
inline |
Constructor that sets all components of the vector to zero
References _v.
Referenced by operator*(), operator+(), operator-(), and operator/().
|
inline |
|
inline |
References _v, and osg::Vec2f::_v.
|
inline |
Returns true if at least one component has value NaN.
References _v, and osg::isNaN().
Referenced by valid().
|
inline |
|
inline |
Length squared of the vector = vec . vec
References _v.
|
inline |
|
inline |
Dot product.
References _v.
|
inline |
|
inline |
Unary multiply by scalar.
References _v.
Unary vector add. Slightly more efficient because no temporary intermediate object.
References _v.
|
inline |
|
inline |
|
inline |
Unary divide by scalar.
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
|
inline |
Returns true if all components have values that are not NaN.
References isNaN().
|
inline |
|
inline |
References _v.
|
inline |
|
inline |
References _v.
value_type osg::Vec2d::_v[2] |
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().