Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Public Attributes | 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
 

Public Attributes

int aux
 

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 32 of file nodes.hh.

Constructor & Destructor Documentation

Node::Node ( )
inline

Default constructor.

Definition at line 41 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 50 of file nodes.hh.

Member Function Documentation

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

Distance of two nodes.

Definition at line 86 of file nodes.hh.

Here is the caller graph for this function:

double Node::getX ( ) const
inline

Old getter methods. OBSOLETE.

Definition at line 57 of file nodes.hh.

Here is the caller graph for this function:

double Node::getY ( ) const
inline

Definition at line 59 of file nodes.hh.

Here is the caller graph for this function:

double Node::getZ ( ) const
inline

Definition at line 61 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 77 of file nodes.hh.

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

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

Definition at line 68 of file nodes.hh.

Here is the caller graph for this function:

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

Definition at line 71 of file nodes.hh.

Member Data Documentation

int Node::aux

Definition at line 93 of file nodes.hh.

arma::vec3 Node::coordinates
private

Node point in 3D space.

Definition at line 35 of file nodes.hh.


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