CSubSpace Class Reference
[Linear algebra library]

#include <subspace.h>

List of all members.

Public Member Functions

 CSubSpace (size_t dim_space=3, size_t dim_sub=0)
 CSubSpace (const CVector &pi, const CMatrix &mi, subspaceflags_t createflags=GEOCPP_FROM_EQS)
 CSubSpace (const CSubSpace &s)
CSubSpace intersect (const CSubSpace &) const
bool contains (const CVector &) const
int getdim () const
const CMatrixgetm () const
const CVectorgetp () const


Detailed Description

Class for describing subspaces of an euclidian vector space, for example the empty space, points, lines and planes.

Definition at line 31 of file subspace.h.


Constructor & Destructor Documentation

CSubSpace::CSubSpace ( size_t  dim_space = 3,
size_t  dim_sub = 0 
)

Constructs a CSubSpace of the specified dimension.

Parameters:
dim_space dimension of the Euclidian vector space we are working in
dim_sub dimension of the subspace to be created

Definition at line 32 of file subspace.cpp.

Referenced by intersect().

CSubSpace::CSubSpace ( const CVector pi,
const CMatrix mi,
subspaceflags_t  createflags = GEOCPP_FROM_EQS 
)

Constructs a CSubSpace from a point and either the equations or a base of the subspace.

Parameters:
pi a point in the subspace
mi a matrix containing the equations or the base of the subspace
createflags specifies whether we were given the equations or the base of the subspace

Definition at line 46 of file subspace.cpp.

References CMatrix::columns(), CMatrix::kern(), CMatrix::rows(), and CMatrix::transp().

CSubSpace::CSubSpace ( const CSubSpace s  )  [inline]

Copy constructor

Definition at line 41 of file subspace.h.


Member Function Documentation

CSubSpace CSubSpace::intersect ( const CSubSpace h2  )  const

bool CSubSpace::contains ( const CVector point  )  const

Test whether the CSubSpace contains a given point.

Definition at line 73 of file subspace.cpp.

References CVector::norm().

int CSubSpace::getdim (  )  const [inline]

const CMatrix& CSubSpace::getm (  )  const [inline]

Accessor for the matrix.

Definition at line 57 of file subspace.h.

const CVector& CSubSpace::getp (  )  const [inline]


The documentation for this class was generated from the following files:

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6