Main Page   Groups   Namespaces  

mini3d::point4d Class Reference
[Core]

point4d - A 4D point class, derived from array<double, 4> More...

Inheritance diagram for mini3d::point4d:

mini3d::array< double, 4 > List of all members.

Public Member Functions

 point4d ()
 A default constructor.
 point4d (const array<double, 4>& src)
 A copy constructor from base class.
 point4d (const array<double, 3>& src, double t)
 A copy constructor from base class.
 point4d (const vector3d& src)
 A copy constructor from vector3d.
 point4d (const point3d& src)
 A copy constructor from point3d.
 point4d (const point4d& src)
 A copy constructor.
 point4d (double v[4])
 A constructor.
 point4d (double vx, double vy, double vz, double vw)
 A constructor.
virtual ~point4d ()
 A destructor.
array4d data () const
 Get the data as a double array.
array4d dataGL () const
 Get the data as a double array (for OpenGL rendering).
point4doperator= (const array<double, 4>& src)
 Copy from the base class.
point3d project () const
 Project the 4d point to a 3D space.

Static Public Attributes

static const point4d _zero_point

Detailed Description

point4d - A 4D point class, derived from array<double, 4>


Constructor & Destructor Documentation

mini3d::point4d::point4d (  ) 
 

A default constructor.

The vector will set as [0 0 0 1].

mini3d::point4d::point4d ( const array<double, 4>&  src  ) 
 

A copy constructor from base class.

Parameters:
src the source vector to copy from.

mini3d::point4d::point4d ( const array<double, 3>&  src,
double  t
 

A copy constructor from base class.

Parameters:
src the source vector to copy from.
t the last component.

mini3d::point4d::point4d ( const vector3d src  ) 
 

A copy constructor from vector3d.

Parameters:
src the vector3d to copy from.

mini3d::point4d::point4d ( const point3d src  ) 
 

A copy constructor from point3d.

Parameters:
src the point3d to copy from.

mini3d::point4d::point4d ( const point4d src  ) 
 

A copy constructor.

Parameters:
src the source vector to copy from.

mini3d::point4d::point4d ( double  v[4]  ) 
 

A constructor.

The vector will set as [v[0] v[1] v[2] v[3]].

Parameters:
v a double point array

mini3d::point4d::point4d ( double  vx,
double  vy,
double  vz,
double  vw
 

A constructor.

The vector will set as [vx vy vz vw].

Parameters:
vx the x component
vy the y component
vz the z component
vw the w component

virtual mini3d::point4d::~point4d (  )  [virtual]
 

A destructor.


Member Function Documentation

array4d mini3d::point4d::data (  )  const
 

Get the data as a double array.

Returns:
a double array4d

array4d mini3d::point4d::dataGL (  )  const
 

Get the data as a double array (for OpenGL rendering).

Returns:
a double array4d

point4d& mini3d::point4d::operator= ( const array<double, 4>&  src  ) 
 

Copy from the base class.

Parameters:
src the vector to copy from
Returns:
itself

point3d mini3d::point4d::project (  )  const
 

Project the 4d point to a 3D space.

Returns:
the 3d point


Member Data Documentation

const point4d mini3d::point4d::_zero_point [static]
 


The documentation for this class was generated from the following file:
Generated for libmini3d by Doxygen 1.4.4 © 1997-2001