openscenegraph
|
#include <Vec4f>
Public Types | |
enum | { num_components = 4 } |
typedef float | value_type |
Public Attributes | |
value_type | _v [4] |
General purpose float quad. Uses include representation of color coordinates. No support yet added for float * Vec4f - is it necessary? Need to define a non-member non-friend operator* etc. Vec4f * float is okay
typedef float osg::Vec4f::value_type |
Data type of vector components.
|
inline |
Constructor that sets all components of the vector to zero
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
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 Vec4f.
|
inline |
Divide by scalar.
|
inline |
Unary divide by scalar.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if all components have values that are not NaN.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
value_type osg::Vec4f::_v[4] |
Vec member variable.