xc
Rect1d2dCooSys.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 //Rect1d2dCooSys.h
22 //One dimensional coordinate system defined in a three-dimensional space.
23 
24 #ifndef SISCOORECT1D2D_H
25 #define SISCOORECT1D2D_H
26 
27 #include "Xd2dCooSys.h"
28 
30 //
34  {
35  public:
36  typedef GEOM_FT VLocal; //Vector type in local system.
37  typedef GEOM_FT PLocal; //Point type in local system.
38 
39  Rect1d2dCooSys(void): Xd2dCooSys(1) {}
40  Rect1d2dCooSys(const PGlobal &o,const PGlobal &p);
41  Rect1d2dCooSys(const VGlobal &vX);
42  virtual CooSys *Copia(void) const
43  { return new Rect1d2dCooSys(*this); }
44 
45  VGlobal getIVector(void) const; //Return global coordinates of unit vector I.
46 
47  VGlobal getGlobalCoordinates(const VLocal &v) const;
48  VLocal getLocalCoordinates(const VGlobal &v) const;
49  virtual ~Rect1d2dCooSys(void)
50  {}
51  };
52 
53 #endif
Posición en dos dimensiones.
Definition: Pos2d.h:41
VGlobal getGlobalCoordinates(const VLocal &v) const
Return the global coordinates components of the vector from the local ones.
Definition: Rect1d2dCooSys.cc:45
Vector en dos dimensiones.
Definition: Vector2d.h:40
One dimensional coordinate system defined in a three-dimensional space.
Definition: Rect1d2dCooSys.h:33
Coordinate system of dimension X defined in a two-dimensional space.
Definition: Xd2dCooSys.h:38
VLocal getLocalCoordinates(const VGlobal &v) const
Return the local coordinates of the vector from the global ones.
Definition: Rect1d2dCooSys.cc:52
Xd2dCooSys(const size_t &)
Define a coordinate system of dimension ne in a two-dimensional space.
Definition: Xd2dCooSys.cc:32
Coordinate systems base class.
Definition: CooSys.h:38
VGlobal getIVector(void) const
Return unary vector I in global coordinates.
Definition: Rect1d2dCooSys.cc:38