![]()  | 
  
    CONFIG LIB 1.5
    
   Configuration Files Library (by TGG 2020) 
   | 
 
Vector 3D class - vector manipulation. More...
#include <vector3d.h>
Public Member Functions | |
| VECTOR_3D (void) | |
| deafult constructor   | |
| VECTOR_3D (const VECTOR_3D &v) | |
| constructor that copies coordiantes from another vector   | |
| VECTOR_3D (double xp, double yp, double zp) | |
| constructor that copies coordiantes from three variables   | |
| VECTOR_3D (double a[]) | |
| constructor that copies coordiantes from the array   | |
| VECTOR_3D & | operator= (const VECTOR_3D &v) | 
| assignment operator   | |
| double | Len (void) const | 
| the value of the vector   | |
| double | LenXY (void) const | 
| the value of the 2D vector in XY plane   | |
| double | LenXZ (void) const | 
| the value of the 2D vector in XZ plane   | |
| double | LenYZ (void) const | 
| the value of the 2D vector in YZ plane   | |
| double | Square (void) const | 
| the square of the vector value   | |
| double | Normalize (void) | 
| normalizes the vector to unit - coordiantes are divided by the vector value, returnes the vector value (length)   | |
| void | GetFrom (double xp, double yp, double zp) | 
| sets coordinates from three variables  | |
| void | GetFrom (double a[]) | 
| sets coordinates from the aray   | |
| void | PutTo (double &xp, double &yp, double &zp) | 
| copies coordinates to three variables  | |
| void | PutTo (double a[]) | 
| copies coordinates to the array  | |
| void | AddTo (double &xp, double &yp, double &zp) | 
| adds coordinates to three variables  | |
| void | AddTo (double a[]) | 
| adds coordinates to the array   | |
| void | Set0 (void) | 
| resets coordinates to zero   | |
| bool | Isnan (void) | 
| determines if any coordinate of given vector is a not-a-number (NaN) value.   | |
| void | rotX (double alpha) | 
| Rotating functions rotates the vector relative to the X axis by an alpha[rad] angle  | |
| void | rotY (double alpha) | 
| rotates the vector relative to the Y axis by an alpha[rad] angle   | |
| void | rotZ (double alpha) | 
| rotates the vector relative to the Z axis by an alpha[rad] angle   | |
| void | rotdX (double alfa) | 
| rotates the vector relative to the X axis by an alpha[deg] angle (precise values for 0,90,180,270 deg)   | |
| void | rotdY (double alfa, double dX=0.) | 
| rotates the vector relative to the Y axis (shifted by dX longwise X) by an alpha[deg] angle (precise values for 0,90,180,270 deg)   | |
| void | rotdZ (double alfa) | 
| rotates the vector relative to the Z axis by an alpha[deg] angle (precise values for 0,90,180,270 deg)   | |
Public Attributes | |
| double | x | 
| x coordinate   | |
| double | y | 
| y coordinate   | |
| double | z | 
| z coordinate   | |
Vector 3D class - vector manipulation.
Definition at line 33 of file vector3d.h.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
constructor that copies coordiantes from three variables
Definition at line 44 of file vector3d.h.
      
  | 
  inline | 
constructor that copies coordiantes from the array
Definition at line 46 of file vector3d.h.
      
  | 
  inline | 
adds coordinates to three variables 
 
Definition at line 75 of file vector3d.h.
      
  | 
  inline | 
adds coordinates to the array
Definition at line 77 of file vector3d.h.
      
  | 
  inline | 
sets coordinates from the aray
Definition at line 67 of file vector3d.h.
      
  | 
  inline | 
sets coordinates from three variables 
 
Definition at line 65 of file vector3d.h.
Referenced by MASS_OBJECT_DATA::Clean(), MASS_OBJECT_DATA::CoordinateSystems(), and IOFUN::ReadVect3().
      
  | 
  inline | 
determines if any coordinate of given vector is a not-a-number (NaN) value.
Definition at line 83 of file vector3d.h.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
| double VECTOR_3D::Normalize | ( | void | ) | 
normalizes the vector to unit - coordiantes are divided by the vector value, returnes the vector value (length)
Definition at line 38 of file vector3d.cpp.
Referenced by MASS_OBJECT_DATA::CheckData(), and MASS_OBJECT_DATA::CoordinateSystems().
assignment operator
Definition at line 26 of file vector3d.cpp.
      
  | 
  inline | 
copies coordinates to three variables 
 
Definition at line 70 of file vector3d.h.
      
  | 
  inline | 
copies coordinates to the array 
 
Definition at line 72 of file vector3d.h.
| void VECTOR_3D::rotdX | ( | double | alfa | ) | 
rotates the vector relative to the X axis by an alpha[deg] angle (precise values for 0,90,180,270 deg)
Definition at line 78 of file vector3d.cpp.
| void VECTOR_3D::rotdY | ( | double | alfa, | 
| double | dX = 0. ) | 
rotates the vector relative to the Y axis (shifted by dX longwise X) by an alpha[deg] angle (precise values for 0,90,180,270 deg)
Definition at line 118 of file vector3d.cpp.
| void VECTOR_3D::rotdZ | ( | double | alfa | ) | 
rotates the vector relative to the Z axis by an alpha[deg] angle (precise values for 0,90,180,270 deg)
Definition at line 158 of file vector3d.cpp.
| void VECTOR_3D::rotX | ( | double | alpha | ) | 
| void VECTOR_3D::rotY | ( | double | alpha | ) | 
| void VECTOR_3D::rotZ | ( | double | alpha | ) | 
      
  | 
  inline | 
resets coordinates to zero
Definition at line 80 of file vector3d.h.
      
  | 
  inline | 
| double VECTOR_3D::x | 
x coordinate
Definition at line 38 of file vector3d.h.
Referenced by AddTo(), AddTo(), GRID_ARRAYS::Array2Panels(), GetFrom(), GetFrom(), Isnan(), Len(), LenXY(), LenXZ(), Normalize(), operator%(), operator%=(), operator&=(), operator*(), operator*(), operator*(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), PutTo(), PutTo(), IOFUN::read(), MASS_OBJECT_DATA::Read(), rotdY(), rotdZ(), rotY(), rotZ(), Set0(), Square(), GRID_ARRAYS::SupWyn(), v_fprintf(), v_fprintf(), v_printf(), v_printf(), v_sprintf(), v_sprintf(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), PANEL::Vout(), vout(), vout0(), voutn(), PANEL::VoutR(), and MASS_OBJECT_DATA::Write().
| double VECTOR_3D::y | 
y coordinate
Definition at line 38 of file vector3d.h.
Referenced by AddTo(), AddTo(), GetFrom(), GetFrom(), Isnan(), Len(), LenXY(), LenYZ(), PANEL::Mirror(), Normalize(), operator%(), operator%=(), operator&=(), operator*(), operator*(), operator*(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), PutTo(), PutTo(), PANEL::PutTo_0(), PANEL::PutTo_n(), IOFUN::read(), MASS_OBJECT_DATA::Read(), rotdX(), rotdZ(), rotX(), rotZ(), Set0(), Square(), v_fprintf(), v_fprintf(), v_printf(), v_printf(), v_sprintf(), v_sprintf(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), PANEL::Vout(), vout(), voutn(), PANEL::VoutR(), and MASS_OBJECT_DATA::Write().
| double VECTOR_3D::z | 
z coordinate
Definition at line 38 of file vector3d.h.
Referenced by AddTo(), AddTo(), GetFrom(), GetFrom(), Isnan(), Len(), LenXZ(), LenYZ(), Normalize(), operator%(), operator%=(), operator&=(), operator*(), operator*(), operator*(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), PutTo(), PutTo(), IOFUN::read(), MASS_OBJECT_DATA::Read(), rotdX(), rotdY(), rotX(), rotY(), Set0(), Square(), v_fprintf(), v_fprintf(), v_printf(), v_printf(), v_sprintf(), v_sprintf(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), VECTOR_3D(), PANEL::Vout(), vout(), vout0(), voutn(), PANEL::VoutR(), and MASS_OBJECT_DATA::Write().