MINT2
|
#include <NPlane.h>
Public Member Functions | |
NPlane (const HyperPointSet &a) | |
NPlane (const HyperPoint &origin, const HyperPointSet &v) | |
int | getDimension () const |
int | getN () const |
const HyperPoint & | getOrigin () const |
virtual const HyperPoint & | getDirection (int i=0) const |
HyperPoint | getParametricPoint (const HyperPoint &t) const |
virtual void | print (std::ostream &os=std::cout, int endline=1) const |
virtual | ~NPlane () |
Protected Attributes | |
HyperPoint | _origin |
HyperPointSet | _v |
A NPlane is some subspace of nDimensional space defined by between 1 and nDim HyperPoints.
e.g. to 3D space, you could have a point, a line, or a plane (defined by 1, 2 and 3 points respectively)
NPlane::NPlane | ( | const HyperPointSet & | a | ) |
Standard constuctor that takes between 1 and nDim HyperPoints. Internally this is converted into an origin and between 0 and (nDim - 1) vectors.
Definition at line 6 of file NPlane.cpp.
NPlane::NPlane | ( | const HyperPoint & | origin, |
const HyperPointSet & | v | ||
) |
Constuctor that takes between an origin, and between 0 and (nDim - 1) vectors.
Definition at line 25 of file NPlane.cpp.
|
virtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
HyperPoint NPlane::getParametricPoint | ( | const HyperPoint & | t | ) | const |
The subspace is defined by (O + x.v_1 + y.v_2 + z.v_3 ...) - a point in this space is then defined by the ‘ParametricPoint’ (x,y,z...). This function takes (x,y,z...) and returns (O + x.v_1 + y.v_2 + z.v_3 ...)
Definition at line 40 of file NPlane.cpp.
|
virtual |
Print out the origin and vectors that define the NPlane
Reimplemented in HyperPlane, and HyperLine.
Definition at line 56 of file NPlane.cpp.
|
protected |
|
protected |