X3DTK::SFPoint2f Class Reference
[base]

Class declared in <X3DTK/kernel.h> providing a 2D point. More...

List of all members.

Public Member Functions

Public Attributes

Static Public Attributes

Friends


Detailed Description

Class declared in <X3DTK/kernel.h> providing a 2D point.

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


Constructor & Destructor Documentation

X3DTK::SFPoint2f::SFPoint2f  ) 
 

Constructor.

X3DTK::SFPoint2f::SFPoint2f float  x,
float  y
 

Constructor with x, y and z coordinates in parameters.

X3DTK::SFPoint2f::SFPoint2f const SFPoint2f p  ) 
 

Copy constructor.

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

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

X3DTK::SFPoint2f::SFPoint2f const SFVec2f V  )  [explicit]
 


Member Function Documentation

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

Returns the pointed array.

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

Returns the pointed array.

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

Returns the pointed array.

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

Returns the pointed array.

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

Overloaded operator.

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

Overloaded operator.

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

Overloaded operator.

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

Overloaded assignment operator.

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

Bracket operator.

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

Bracket operator.


Friends And Related Function Documentation

float distance const SFPoint2f A,
const SFPoint2f B
[friend]
 

Returns the distance between the points A and B.

SFPoint2f operator * const float  a,
const SFPoint2f v
[friend]
 

Overloaded operator*.

SFPoint2f operator+ const SFPoint2f v1,
const SFPoint2f v2
[friend]
 

Overloaded operator+.

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

Overloaded operator+.

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

Overloaded operator-.

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

Overloaded operator-.


Member Data Documentation

const SFPoint2f X3DTK::SFPoint2f::null [static]
 

Origin point.

float X3DTK::SFPoint2f::x
 

x coordinates.

float X3DTK::SFPoint2f::y
 

y coordinates.


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