rsvs3D  0.0.0
Codes for the c++ implementation of the 3D RSVS
coordvec Class Reference

Handles the use and norm of a vector for which the norm and the unit value might be needed. More...

#include <mesh.hpp>

Public Member Functions

double CalcNorm ()
 
double GetNorm ()
 
double GetNorm () const
 
void PrepareForUse ()
 
coordvec Unit () const
 
double Unit (const int a) const
 
double Normalize ()
 
void assign (double a, double b, double c)
 
double & operator[] (int a)
 
double operator() (int a) const
 
void disp () const
 
bool isready () const
 
const std::vector< double > & usedata () const
 
const std::vector< double > * retPtr () const
 
void flipsign ()
 
void max (const std::vector< double > &vecin)
 
void min (const std::vector< double > &vecin)
 
void add (const std::vector< double > &vecin)
 
void substract (const std::vector< double > &vecin)
 
void substractfrom (const std::vector< double > &vecin)
 
void div (const std::vector< double > &vecin)
 
void div (double scalin)
 
void mult (const std::vector< double > &vecin)
 
void mult (double scalin)
 
void swap (std::vector< double > &vecin)
 
void swap (coordvec &coordin)
 
std::vector< double > cross (const std::vector< double > &vecin) const
 
double dot (const std::vector< double > &vecin) const
 
double angle (const coordvec &coordin) const
 
void operator= (const std::vector< double > &a)
 

Protected Attributes

std::vector< double > elems
 
double norm
 
int isuptodate
 

Detailed Description

Handles the use and norm of a vector for which the norm and the unit value might be needed.

Implements some simple mathematical operations for coordinate (3-D) vectors.

Definition at line 113 of file mesh.hpp.


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