Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

X3DTK::SFVec2f Class Reference

Class providing an implementation of a 3D float vector. More...

List of all members.

Public Methods

Public Attributes

Static Public Attributes

Friends


Detailed Description

Class providing an implementation of a 3D float vector.

SFVec2f is a vector in an affin space, which different from a point represented by the SFPoint2f class.


Constructor & Destructor Documentation

X3DTK::SFVec2f::SFVec2f  
 

Default constructor.

X3DTK::SFVec2f::SFVec2f float    x,
float    y
 

Constructor with x, y and z coordinates in parameters.

X3DTK::SFVec2f::SFVec2f const SFVec2f &    v
 

Copy constructor.

X3DTK::SFVec2f::SFVec2f const SFString   s [explicit]
 

Explicit constructor from a string of which format is "x y".


Member Function Documentation

const float* X3DTK::SFVec2f::f_data   const [inline]
 

Returns the pointed array.

float* X3DTK::SFVec2f::f_data   [inline]
 

Returns the pointed array.

float X3DTK::SFVec2f::norm  
 

Returns the norm of the vector.

SFVec2f X3DTK::SFVec2f::normalize  
 

Normalizes the vector.

SFVec2f X3DTK::SFVec2f::normalized  
 

Returns the vector normalized but doesn't change the vector.

SFVec2f& X3DTK::SFVec2f::operator+= const SFVec2f &    v
 

Overloaded operator.

SFVec2f& X3DTK::SFVec2f::operator-= const SFVec2f &    v
 

Overloaded operator.

SFVec2f& X3DTK::SFVec2f::operator= const SFVec2f &    v
 

Overloaded assignment operator.


Friends And Related Function Documentation

SFVec2f operator * const float    a,
const SFVec2f &    v
[friend]
 

Overloaded operator *.

float operator * const SFVec2f &    v1,
const SFVec2f &    v2
[friend]
 

Overloaded operator *.

bool operator!= const SFVec2f &    v1,
const SFVec2f &    v2
[friend]
 

Overloaded operator!=.

SFVec2f operator+ const SFVec2f &    v1,
const SFVec2f &    v2
[friend]
 

Overloaded operator+.

SFVec2f operator- const SFVec2f &    v1,
const SFVec2f &    v2
[friend]
 

Overloaded operator-.

bool operator== const SFVec2f &    v1,
const SFVec2f &    v2
[friend]
 

Overloaded operator==.


Member Data Documentation

const SFVec2f X3DTK::SFVec2f::null [static]
 

null vector.

float X3DTK::SFVec2f::x
 

x coordinates.

float X3DTK::SFVec2f::y
 

y coordinates.


Generated on Mon Jan 19 10:32:12 2004 for X3DToolKit by doxygen1.2.18