Flow123d  release_3.0.0-1182-ga9abfa7
Public Member Functions | Private Attributes | List of all members
Node Class Reference

#include <nodes.hh>

Collaboration diagram for Node:
Collaboration graph
[legend]

Public Member Functions

 Node ()
 
 Node (double x, double y, double z)
 
double getX () const
 
double getY () const
 
double getZ () const
 
arma::vec3point ()
 
const arma::vec3point () const
 
arma::vec3 operator- (const Node &n2) const
 
double distance (const Node &n2) const
 

Private Attributes

arma::vec3 coordinates
 Node point in 3D space. More...
 

Detailed Description

Class of node. First approach in turning to class.

Definition at line 31 of file nodes.hh.

Constructor & Destructor Documentation

Node::Node ( )
inline

Default constructor.

Definition at line 40 of file nodes.hh.

Node::Node ( double  x,
double  y,
double  z 
)
inline

Construct form given coordinates.

Possibly there could be also constructor from a vector.

Definition at line 49 of file nodes.hh.

Member Function Documentation

double Node::distance ( const Node n2) const
inline

Distance of two nodes.

Definition at line 85 of file nodes.hh.

Here is the caller graph for this function:

double Node::getX ( ) const
inline

Old getter methods. OBSOLETE.

Definition at line 56 of file nodes.hh.

Here is the caller graph for this function:

double Node::getY ( ) const
inline

Definition at line 58 of file nodes.hh.

Here is the caller graph for this function:

double Node::getZ ( ) const
inline

Definition at line 60 of file nodes.hh.

Here is the caller graph for this function:

arma::vec3 Node::operator- ( const Node n2) const
inline

Difference of two nodes is a vector.

Definition at line 76 of file nodes.hh.

arma::vec3& Node::point ( )
inline

Getter method for nodal point. Can be used also for modification.

Definition at line 67 of file nodes.hh.

Here is the caller graph for this function:

const arma::vec3& Node::point ( ) const
inline

Definition at line 70 of file nodes.hh.

Member Data Documentation

arma::vec3 Node::coordinates
private

Node point in 3D space.

Definition at line 34 of file nodes.hh.


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