"Fossies" - the Fresh Open Source Software Archive

Member "gmsh-4.3.0-source/Geo/affineTransformation.h" (14 Mar 2019, 1237 Bytes) of package /linux/privat/gmsh-4.3.0-source.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "affineTransformation.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 4.1.5_vs_4.2.0.

    1 // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    2 //
    3 // See the LICENSE.txt file for license information. Please report all
    4 // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    5 
    6 #ifndef AFFINETRANSFORMATION_H
    7 #define AFFINETRANSFORMATION_H
    8 
    9 #include <vector>
   10 
   11 // compute affine transformation from rotation/translation
   12 
   13 bool computeAffineTransformation(const double *rc, // rotation center
   14                                  const double *ra, // rotation angle
   15                                  const double *tr, // translation
   16                                  std::vector<double> &tfo // transformation
   17 );
   18 // compute affine transfomration from rotation/translation
   19 
   20 bool computeAffineTransformation(const float *rc, // rotation center
   21                                  const float *ra, // rotation angle
   22                                  const float *tr, // translation
   23                                  std::vector<double> &tfo // transformation
   24 );
   25 
   26 // invert affine transformation
   27 
   28 bool invertAffineTransformation(const std::vector<double> &tfo,
   29                                 std::vector<double> &newTfo);
   30 
   31 // initialize transformation with unitary one
   32 
   33 bool setUnitAffineTransformation(std::vector<double> &tfo);
   34 
   35 #endif