OSG
3.4.0
|
#include <Vec2f.h>
Public Types | |
enum | { num_components = 2 } |
typedef float | value_type |
Public Member Functions | |
Vec2f () | |
Vec2f (value_type x, value_type y) | |
bool | operator== (const Vec2f &v) const |
bool | operator!= (const Vec2f &v) const |
bool | operator< (const Vec2f &v) const |
value_type * | ptr () |
const value_type * | ptr () const |
void | set (value_type x, value_type y) |
void | set (const Vec2f &rhs) |
value_type & | operator[] (int i) |
value_type | operator[] (int i) const |
value_type & | x () |
value_type & | y () |
value_type | x () const |
value_type | y () const |
bool | valid () const |
bool | isNaN () const |
value_type | operator* (const Vec2f &rhs) const |
const Vec2f | operator* (value_type rhs) const |
Vec2f & | operator*= (value_type rhs) |
const Vec2f | operator/ (value_type rhs) const |
Vec2f & | operator/= (value_type rhs) |
const Vec2f | operator+ (const Vec2f &rhs) const |
Vec2f & | operator+= (const Vec2f &rhs) |
const Vec2f | operator- (const Vec2f &rhs) const |
Vec2f & | operator-= (const Vec2f &rhs) |
const Vec2f | operator- () const |
value_type | length () const |
value_type | length2 (void) const |
value_type | normalize () |
Public Attributes | |
value_type | _v [2] |
General purpose float pair. Uses include representation of texture coordinates. No support yet added for float * Vec2f - is it necessary? Need to define a non-member non-friend operator* etc. BTW: Vec2f * float is okay
typedef float osg::Vec2f::value_type |
anonymous enum |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
value_type osg::Vec2f::_v[2] |