X3DTK::SFVec3f Class Reference
[base]

Class declared in <X3DTK/kernel.h> providing a 3D vector. More...

List of all members.

Public Member Functions

Public Attributes

Static Public Attributes

Friends


Detailed Description

Class declared in <X3DTK/kernel.h> providing a 3D vector.

SFVec3f is a vector in an affin space, which is different from a point represented by the SFPoint3f class. When multiplied by a SFMatrix34f, the translation is not applied.


Constructor & Destructor Documentation

X3DTK::SFVec3f::SFVec3f  ) 
 

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

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

Returns the pointed array.

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.

X3DTK::SFVec3f::operator const float *  )  const [inline]
 

Returns the pointed array.

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

Returns the pointed array.

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

Overloaded operator.

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

Overloaded operator.

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

Overloaded assignment operator.

const float& X3DTK::SFVec3f::operator[] int  i  )  const [inline]
 

Bracket operator.

float& X3DTK::SFVec3f::operator[] int  i  )  [inline]
 

Bracket operator.

SFString X3DTK::SFVec3f::toSFString  )  const
 

Converts into string.


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 v  )  [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

const SFVec3f X3DTK::SFVec3f::null [static]
 

Null vector.

float X3DTK::SFVec3f::x
 

x coordinates.

float X3DTK::SFVec3f::y
 

y coordinates.

float X3DTK::SFVec3f::z
 

z coordinates.


Generated on Fri Aug 27 13:16:30 2004 for X3DToolKit by doxygen 1.3.6