HyperPlot
v1
Bin and visualise multidimensional datasets
|
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.
#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 |
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 |
HyperPlane::HyperPlane | ( | const HyperPointSet & | a | ) |
Constructor that requires nDim points to define the HyperPlane
Definition at line 6 of file HyperPlane.cpp.
HyperPoint HyperPlane::findIntersectionPoint | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 131 of file HyperPlane.cpp.
TMatrixD HyperPlane::findIntersectionSolution | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 164 of file HyperPlane.cpp.
HyperPoint HyperPlane::findLineIntersectionParameter | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 141 of file HyperPlane.cpp.
HyperPoint HyperPlane::findPlaneIntersectionParameters | ( | const HyperPoint & | hyperPoint, |
int | dimToOmmit = 0 |
||
) | const |
Definition at line 56 of file HyperPlane.cpp.
HyperPoint HyperPlane::findPlaneIntersectionParameters | ( | const HyperLine & | hyperLine | ) | const |
Definition at line 149 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 226 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 36 of file HyperPlane.cpp.
|
virtual |
Print the parameters that define the HyperPlane
Reimplemented from NPlane.
Definition at line 19 of file HyperPlane.cpp.