Home Hierarchy Members Alphabetical Related Pages

SFVec2f Class Reference
[Field Types]

#include <sfvec2f.h>

List of all members.

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)


Detailed Description

Represents a 2 coordinates (X,Y) vector. Below is included the documentation for this field type from the ISO standard.

+ 5.11 SFVec2f and MFVec2f

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 [ ].

--- VRML separator bar ---


Constructor & Destructor Documentation

SFVec2f  )  [inline]
 

SFVec2f const float *  c  )  [inline]
 

SFVec2f const float  x,
const float  y
[inline]
 


Member Function Documentation

operator const float *  )  const [inline]
 

operator float *  )  [inline]
 

bool operator== const SFVec2f c  )  const [inline]
 

void setX const   float  )  [inline]
 

void setXY const float  x,
const float  y
[inline]
 

void setY const   float  )  [inline]
 

FieldTypeId typeId  )  [inline, static]
 

const char * typeName  )  [inline, static]
 

float x  )  const [inline]
 

float y  )  const [inline]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const SFVec2f f
[friend]
 


Generated on 24 Feb 2005 with doxygen version 1.3.9.1. Valid HTML 4.0! Valid CSS!