Changeset 3dcb1f


Ignore:
Timestamp:
Jun 30, 2010, 3:16:10 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
f429d7
Parents:
6e00dd
git-author:
Tillmann Crueger <crueger@…> (06/30/10 14:45:38)
git-committer:
Tillmann Crueger <crueger@…> (06/30/10 15:16:10)
Message:

Added two functions to Box class to translate Vectors from Box-Space to normal space

Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/ChangeBoxAction.cpp

    r6e00dd r3dcb1f  
    1313#include "World.hpp"
    1414#include "Box.hpp"
     15#include "Matrix.hpp"
    1516
    1617#include <iostream>
  • src/Actions/WorldAction/ScaleBoxAction.cpp

    r6e00dd r3dcb1f  
    1515#include "World.hpp"
    1616#include "Box.hpp"
     17#include "Matrix.hpp"
    1718
    1819#include <iostream>
  • src/Box.cpp

    r6e00dd r3dcb1f  
    1111
    1212#include "Matrix.hpp"
     13#include "vector.hpp"
    1314
    1415#include "Helpers/Assert.hpp"
     
    4849}
    4950
     51Vector Box::translateIn(const Vector &point){
     52  return (*M) * point;
     53}
     54
     55Vector Box::translateOut(const Vector &point){
     56  return (*Minv) * point;
     57}
     58
    5059Box &Box::operator=(const Box &src){
    5160  if(&src!=this){
  • src/Box.hpp

    r6e00dd r3dcb1f  
    99#define BOX_HPP_
    1010
    11 #include "Matrix.hpp"
     11class Matrix;
     12class Vector;
    1213
    1314class Box
     
    2526  Box &operator=(const Matrix&);
    2627
     28  Vector translateIn(const Vector &point);
     29  Vector translateOut(const Vector &point);
     30
    2731private:
    2832  Matrix *M;    //!< Defines the layout of the box
  • src/unittests/LineUnittest.cpp

    r6e00dd r3dcb1f  
    1717
    1818#include <iostream>
     19#include <cmath>
    1920
    2021using namespace std;
  • src/unittests/PlaneUnittest.cpp

    r6e00dd r3dcb1f  
    1111#include <cppunit/extensions/TestFactoryRegistry.h>
    1212#include <cppunit/ui/text/TestRunner.h>
     13
     14#include <cmath>
    1315
    1416#ifdef HAVE_TESTRUNNER
  • src/unittests/linearsystemofequationsunittest.cpp

    r6e00dd r3dcb1f  
    1212#include <cppunit/extensions/TestFactoryRegistry.h>
    1313#include <cppunit/ui/text/TestRunner.h>
     14#include <cmath>
    1415
    1516#include "linearsystemofequationsunittest.hpp"
  • src/vector.hpp

    r6e00dd r3dcb1f  
    1313#include <iostream>
    1414#include <gsl/gsl_vector.h>
    15 #include <gsl/gsl_multimin.h>
    1615
    1716#include <memory>
  • src/vector_ops.cpp

    r6e00dd r3dcb1f  
    2323#include <gsl/gsl_permutation.h>
    2424#include <gsl/gsl_vector.h>
     25#include <gsl/gsl_multimin.h>
    2526
    2627/**
Note: See TracChangeset for help on using the changeset viewer.