ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
GOLine Class Reference

Class for a line geometric object. More...

#include <GOLine.h>

Inherits GeometricObject.

Public Member Functions

 GOLine (const Coord &vertex, const Coord &vecDir)
 
virtual ~GOLine ()
 
virtual double distancePoint (const Coord &vertex) const
 Compute the distance between a vertex and the corresponding geometric object.
 
virtual Coord projectionPoint (const Coord &vertex) const
 Compute the projection between a vertex and the corresponding geometric object.
 
- Public Member Functions inherited from GeometricObject
 GeometricObject ()
 
 GeometricObject (TypeGO type)
 
virtual ~GeometricObject ()
 
TypeGO getType ()
 Return the type of the geometric object.
 

Private Attributes

Coord m_point
 
Coord m_vecDir
 Point from the line.
 

Additional Inherited Members

- Protected Attributes inherited from GeometricObject
TypeGO m_type
 

Detailed Description

Class for a line geometric object.

Constructor & Destructor Documentation

◆ GOLine()

GOLine::GOLine ( const Coord vertex,
const Coord vecDir 
)

◆ ~GOLine()

GOLine::~GOLine ( )
virtual

Member Function Documentation

◆ distancePoint()

double GOLine::distancePoint ( const Coord ) const
virtual

Compute the distance between a vertex and the corresponding geometric object.

Parameters
vertexcoordinates of the vertex

Reimplemented from GeometricObject.

◆ projectionPoint()

Coord GOLine::projectionPoint ( const Coord ) const
virtual

Compute the projection between a vertex and the corresponding geometric object.

Parameters
vertexcoordinates of the vertex

Reimplemented from GeometricObject.

Member Data Documentation

◆ m_point

Coord GOLine::m_point
private

◆ m_vecDir

Coord GOLine::m_vecDir
private

Point from the line.


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