openscenegraph
|
#include <Vec3f>
Public Types | |
enum | { num_components = 3 } |
typedef float | value_type |
Public Attributes | |
value_type | _v [3] |
General purpose float triple for use as vertices, vectors and normals. Provides general math operations from addition through to cross products. No support yet added for float * Vec3f - is it necessary? Need to define a non-member non-friend operator* etc. Vec3f * float is okay
typedef float osg::Vec3f::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 |
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 Vec3f.
|
inline |
Divide by scalar.
|
inline |
Unary divide by scalar.
|
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 |
value_type osg::Vec3f::_v[3] |