MINT2
Public Member Functions | List of all members
HyperLine Class Reference

#include <HyperLine.h>

Inheritance diagram for HyperLine:
NPlane

Public Member Functions

 HyperLine (const HyperPoint &a, const HyperPoint &b)
 
virtual void print (std::ostream &os=std::cout, int endline=1) const
 
 ~HyperLine ()
 
- 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
 

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 HyperLine that is defined by 2 points nDim space.

Definition at line 23 of file HyperLine.h.

Constructor & Destructor Documentation

◆ HyperLine()

HyperLine::HyperLine ( const HyperPoint a,
const HyperPoint b 
)

Standard constructor that takes two HyperPoints

Definition at line 5 of file HyperLine.cpp.

5  :
6  NPlane( HyperPointSet(a, b) )
7 {
8 
9  WELCOME_LOG << "Hello from the HyperLine() Constructor";
10 }
NPlane(const HyperPointSet &a)
Definition: NPlane.cpp:6
#define WELCOME_LOG

◆ ~HyperLine()

HyperLine::~HyperLine ( )

Destructor

Definition at line 27 of file HyperLine.cpp.

27  {
28  GOODBYE_LOG << "Goodbye from the HyperLine() Constructor";
29 }
#define GOODBYE_LOG

Member Function Documentation

◆ print()

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

Print the parameters that define the HyperLine

Reimplemented from NPlane.

Definition at line 14 of file HyperLine.cpp.

14  {
15 
16  os << "HyperLine: v = ";
17  _origin.print(os, 0);
18  os << " + ";
19  _v.at(0).print(os, 0);
20  os << "t";
21  if (endline) os << std::endl;
22 
23 }
HyperPointSet _v
Definition: NPlane.h:36
virtual void print(std::ostream &os=std::cout, int endline=1) const
Definition: HyperPoint.cpp:453
const HyperPoint & at(int i) const
HyperPoint _origin
Definition: NPlane.h:34

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