NCBI C++ ToolKit
|
#include <math.h>
#include <corelib/ncbistre.hpp>
#include <corelib/ncbistl.hpp>
#include <corelib/ncbidiag.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
class | Vector< T > |
class | Matrix< T > |
Functions | |
ncbi::CNcbiOstream & | operator<< (ncbi::CNcbiOstream &s, const Vector &v) |
void | SetTranslationMatrix (Matrix *m, const Vector &v, int n=1) |
void | SetScaleMatrix (Matrix *m, const Vector &v) |
void | SetRotationMatrix (Matrix *m, const Vector &v, double rad, int n=1) |
void | ApplyTransformation (Vector *v, const Matrix &m) |
void | ComposeInto (Matrix *C, const Matrix &A, const Matrix &B) |
void | InvertInto (Matrix *I, const Matrix &A) |
void | RigidBodyFit (int natx, const Vector *const *xref, const Vector *const *xvar, const double *weights, Vector &cgref, Vector &cgvar, Matrix &rotMat) |
double | ComputeRMSD (int nCoords, const Vector *const *masterCoords, const Vector *const *dependentCoords, const Matrix *transformDependentToMaster) |
Definition at line 91 of file vector_math.cpp.
References Matrix< T >::m, t, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Referenced by OpenGLRenderer::AddTransparentSpheresForList(), OpenGLRenderer::ChangeView(), ComputeRMSD(), OpenGLRenderer::MyGluCylinder(), StructureSet::SelectedAtom(), and StructureSet::SetCenter().
Definition at line 103 of file vector_math.cpp.
Referenced by StructureObject::RealignStructure(), and StructureObject::SetTransformToMaster().
double ComputeRMSD | ( | int | nCoords, |
const Vector *const * | masterCoords, | ||
const Vector *const * | dependentCoords, | ||
const Matrix * | transformDependentToMaster | ||
) |
Definition at line 310 of file vector_math.cpp.
References ApplyTransformation(), n, and WARNINGMSG.
Referenced by StructureObject::RealignStructure().
Definition at line 120 of file vector_math.cpp.
|
inline |
Definition at line 161 of file vector_math.hpp.
References Vector< T >::x, Vector< T >::y, and Vector< T >::z.
void RigidBodyFit | ( | int | natx, |
const Vector *const * | xref, | ||
const Vector *const * | xvar, | ||
const double * | weights, | ||
Vector & | cgref, | ||
Vector & | cgvar, | ||
Matrix & | rotMat | ||
) |
Definition at line 181 of file vector_math.cpp.
References f(), i, Matrix< T >::SetToIdentity(), and t.
Referenced by StructureObject::RealignStructure().
Definition at line 62 of file vector_math.cpp.
References Matrix< T >::m, n, Vector< T >::normalize(), t, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Referenced by OpenGLRenderer::MyGluCylinder().
Definition at line 53 of file vector_math.cpp.
References Matrix< T >::m, Vector< T >::x, Vector< T >::y, and Vector< T >::z.
Definition at line 45 of file vector_math.cpp.
References n.
Referenced by StructureObject::RealignStructure(), and StructureObject::SetTransformToMaster().