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

X3DTK::SFVec3f Class Reference

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

List of all members.

Public Member Functions

Public Attributes

Friends


Detailed Description

Class providing an implementation of a 3D float vector.

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


Constructor & Destructor Documentation

X3DTK::SFVec3f::SFVec3f  ) 
 

Default constructor.

X3DTK::SFVec3f::SFVec3f float  x,
float  y,
float  z
 

Constructor with x, y and z coordinates in parameters.

X3DTK::SFVec3f::SFVec3f const SFVec3f &  v  ) 
 

Copy constructor.

X3DTK::SFVec3f::SFVec3f const SFString s  )  [explicit]
 

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

X3DTK::SFVec3f::SFVec3f const SFPoint3f P  )  [explicit]
 

Conversion from point to vector.


Member Function Documentation

float* X3DTK::SFVec3f::f_data  )  [inline]
 

Returns the pointed array.

float X3DTK::SFVec3f::norm  )  const
 

Returns the norm of the vector.

SFVec3f X3DTK::SFVec3f::normalize  ) 
 

Normalizes the vector.

SFVec3f X3DTK::SFVec3f::normalized  )  const
 

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

SFVec3f& X3DTK::SFVec3f::operator= SFVec3f  v  ) 
 

Overloaded assignment operator.


Friends And Related Function Documentation

SFVec3f crossprod const SFVec3f &  v1,
const SFVec3f &  v2
[friend]
 

Cross product between two vectors.

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

Overloaded operator*.

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

Overloaded operator*.

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

Overloaded operator!=.

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

Overloaded operator+.

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

Overloaded operator-.

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

Overloaded operator==.


Member Data Documentation

float X3DTK::SFVec3f::x
 

x coordinates.

float X3DTK::SFVec3f::y
 

y coordinates.

float X3DTK::SFVec3f::z
 

z coordinates.


Generated on Tue Jul 15 16:46:55 2003 for X3DToolKit by doxygen1.3