openscenegraph
|
#include <Vec2d>
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
|
inline |
|
inline |
|
inline |
Returns true if at least one component has value NaN.
|
inline |
Length of the vector = sqrt( vec . vec )
|
inline |
Length squared of the vector = vec . vec
|
inline |
Normalize the vector so that it has length unity. Returns the previous length of the vector.
|
inline |
|
inline |
|
inline |
Dot product.
|
inline |
Multiply by scalar.
|
inline |
Unary multiply by scalar.
Unary vector add. Slightly more efficient because no temporary intermediate object.
|
inline |
Negation operator. Returns the negative of the Vec2d.
|
inline |
Divide by scalar.
|
inline |
Unary divide by scalar.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if all components have values that are not NaN.
|
inline |
|
inline |
|
inline |
|
inline |
value_type osg::Vec2d::_v[2] |