xc
Rect1d3dCooSys.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. Pérez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //Rect1d3dCooSys.h
22 //One-dimensional coordinate system defined in a three-dimensional space.
23 
24 #ifndef SISCOORECT1D3D_H
25 #define SISCOORECT1D3D_H
26 
27 #include "Xd3dCooSys.h"
28 
30 //
34  {
35  public:
36  typedef GEOM_FT VLocal; //Dimension of the vector in local coordinates.
37  typedef GEOM_FT PLocal; //Dimension of the point in local coordinates.
38 
39  public:
40  Rect1d3dCooSys(void): Xd3dCooSys(1) {}
41  Rect1d3dCooSys(const PGlobal &o,const PGlobal &p);
42  Rect1d3dCooSys(const VGlobal &vX);
43  virtual CooSys *Copia(void) const
44  { return new Rect1d3dCooSys(*this); }
45  virtual Xd3dCooSys *CopiaXd3d(void) const
46  { return new Rect1d3dCooSys(*this); }
47  void XAxisVector(const VGlobal &vX);
48  VGlobal getIVector(void) const; //Return the global coordinates of unit vector I.
49  VGlobal getGlobalCoordinates(const VLocal &v) const;
50  VLocal getLocalCoordinates(const VGlobal &v) const;
51  virtual ~Rect1d3dCooSys(void)
52  {}
53  };
54 
55 #endif
VGlobal getGlobalCoordinates(const VLocal &v) const
Return the global coordinates of the vector.
Definition: Rect1d3dCooSys.cc:43
VLocal getLocalCoordinates(const VGlobal &v) const
Return the local coordinates of the vector.
Definition: Rect1d3dCooSys.cc:49
Base class for coordinate systems defined in a three-dimensional space.
Definition: Xd3dCooSys.h:37
VGlobal getIVector(void) const
Return the unary vector I in global coordinates.
Definition: Rect1d3dCooSys.cc:37
Posición en tres dimensiones.
Definition: Pos3d.h:44
Coordinate systems base class.
Definition: CooSys.h:38
Vector en tres dimensiones.
Definition: Vector3d.h:39
One-dimensional coordinate system defined in a three-dimensional space.
Definition: Rect1d3dCooSys.h:33