Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <sfvec2f.h>
Public Member Functions | |
SFVec2f () | |
SFVec2f (const float *c) | |
SFVec2f (const float x, const float y) | |
operator const float * () const | |
operator float * () | |
float | x () const |
float | y () const |
void | setXY (const float x, const float y) |
void | setX (const float) |
void | setY (const float) |
bool | operator== (const SFVec2f &c) const |
Static Public Member Functions | |
const char * | typeName () |
FieldTypeId | typeId () |
Friends | |
std::ostream & | operator<< (std::ostream &s, const SFVec2f &f) |
The SFVec2f field or event specifies a two-dimensional (2D) vector. An MFVec2f field or event specifies zero or more 2D vectors. SFVec2f's and MFVec2f's are written to the VRML file as a pair of ISO C floating point values (see 2.[ISOC]) separated by whitespace. For example:
fooVec2f [ 42 666, 7 94 ]
is an MFVec2f field, fooVec2f, with two valid vectors.
The initial value of an SFVec2f eventOut is (0 0). The initial value of an MFVec2f eventOut is [ ].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generated on 24 Feb 2005 with version 1.3.9.1. |