MINT2
|
#include <HyperPlane.h>
Public Member Functions | |
HyperPlane (const HyperPointSet &a) | |
virtual void | print (std::ostream &os=std::cout, int endline=1) const |
bool | pointInPlane (const HyperPoint &hyperPoint) const |
HyperPoint | findPlaneIntersectionParameters (const HyperPoint &hyperPoint, int dimToOmmit=0) const |
HyperPoint | findIntersectionPoint (const HyperLine &hyperLine) const |
HyperPoint | findLineIntersectionParameter (const HyperLine &hyperLine) const |
HyperPoint | findPlaneIntersectionParameters (const HyperLine &hyperLine) const |
TMatrixD | findIntersectionSolution (const HyperLine &hyperLine) const |
bool | operator== (const HyperPlane &other) const |
~HyperPlane () | |
Public Member Functions inherited from NPlane | |
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 | ~NPlane () |
Additional Inherited Members | |
Protected Attributes inherited from NPlane | |
HyperPoint | _origin |
HyperPointSet | _v |
HyperPlot, Author: Sam Harnew, sam.h , Date: Dec 2015 arne w@gma il.c om
A HyperPlane that is defined by nDim points in space. i.e. a line in 2D, a plane in 3D ...
Definition at line 25 of file HyperPlane.h.
HyperPlane::HyperPlane | ( | const HyperPointSet & | a | ) |
Constructor that requires nDim points to define the HyperPlane
Definition at line 7 of file HyperPlane.cpp.
HyperPlane::~HyperPlane | ( | ) |
Definition at line 244 of file HyperPlane.cpp.
HyperPoint HyperPlane::findIntersectionPoint | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 132 of file HyperPlane.cpp.
TMatrixD HyperPlane::findIntersectionSolution | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 165 of file HyperPlane.cpp.
HyperPoint HyperPlane::findLineIntersectionParameter | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 142 of file HyperPlane.cpp.
HyperPoint HyperPlane::findPlaneIntersectionParameters | ( | const HyperPoint & | hyperPoint, |
int | dimToOmmit = 0 |
||
) | const |
Definition at line 57 of file HyperPlane.cpp.
HyperPoint HyperPlane::findPlaneIntersectionParameters | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 150 of file HyperPlane.cpp.
bool HyperPlane::operator== | ( | const HyperPlane & | other | ) | const |
See if two planes are the same. Cannot just comapre the parameters. Instead see if the points that define plane A are within plane B.
Definition at line 227 of file HyperPlane.cpp.
bool HyperPlane::pointInPlane | ( | const HyperPoint & | hyperPoint | ) | const |
Check to see if a point is within a HyperPlane. Distance between the two has to be smaller than sqrt(1e-2)
Definition at line 37 of file HyperPlane.cpp.
|
virtual |
Print the parameters that define the HyperPlane
Reimplemented from NPlane.
Definition at line 20 of file HyperPlane.cpp.