HyperPlot  v1
Bin and visualise multidimensional datasets
Public Member Functions | List of all members
HyperPlane Class Reference

Detailed Description

HyperPlot, Author: Sam Harnew, sam.h.nosp@m.arne.nosp@m.w@gma.nosp@m.il.c.nosp@m.om , Date: Dec 2015

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>

Inheritance diagram for HyperPlane:
NPlane

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 HyperPointgetOrigin () const
 
virtual const HyperPointgetDirection (int i=0) const
 
HyperPoint getParametricPoint (const HyperPoint &t) const
 
virtual ~NPlane ()
 

Additional Inherited Members

- Protected Attributes inherited from NPlane
HyperPoint _origin
 
HyperPointSet _v
 

Constructor & Destructor Documentation

HyperPlane::HyperPlane ( const HyperPointSet a)

Constructor that requires nDim points to define the HyperPlane

Definition at line 6 of file HyperPlane.cpp.

Member Function Documentation

HyperPoint HyperPlane::findIntersectionPoint ( const HyperLine hyperLine) const
Todo:
remember how this works

Definition at line 131 of file HyperPlane.cpp.

TMatrixD HyperPlane::findIntersectionSolution ( const HyperLine hyperLine) const
Todo:
remember how this works

Definition at line 164 of file HyperPlane.cpp.

HyperPoint HyperPlane::findLineIntersectionParameter ( const HyperLine hyperLine) const
Todo:
remember how this works

Definition at line 141 of file HyperPlane.cpp.

HyperPoint HyperPlane::findPlaneIntersectionParameters ( const HyperPoint hyperPoint,
int  dimToOmmit = 0 
) const
Todo:
remember how this works

Definition at line 56 of file HyperPlane.cpp.

HyperPoint HyperPlane::findPlaneIntersectionParameters ( const HyperLine hyperLine) const
Todo:
remember how this works

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.

void HyperPlane::print ( std::ostream &  os = std::cout,
int  endline = 1 
) const
virtual

Print the parameters that define the HyperPlane

Reimplemented from NPlane.

Definition at line 19 of file HyperPlane.cpp.


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