NCBI C++ ToolKit
Classes | Functions
vector_math.hpp File Reference
#include <math.h>
#include <corelib/ncbistre.hpp>
#include <corelib/ncbistl.hpp>
#include <corelib/ncbidiag.hpp>
+ Include dependency graph for vector_math.hpp:
+ This graph shows which files directly or indirectly include this file:

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::CNcbiOstreamoperator<< (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)
 

Function Documentation

◆ ApplyTransformation()

void ApplyTransformation ( Vector v,
const Matrix m 
)

◆ ComposeInto()

void ComposeInto ( Matrix C,
const Matrix A,
const Matrix B 
)

Definition at line 103 of file vector_math.cpp.

References A, B, C, and i.

Referenced by StructureObject::RealignStructure(), and StructureObject::SetTransformToMaster().

◆ ComputeRMSD()

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().

◆ InvertInto()

void InvertInto ( Matrix I,
const Matrix A 
)

Definition at line 120 of file vector_math.cpp.

References a, A, b, f(), g(), i, l(), and Matrix< T >::m.

◆ operator<<()

ncbi::CNcbiOstream& operator<< ( ncbi::CNcbiOstream s,
const Vector v 
)
inline

Definition at line 161 of file vector_math.hpp.

References Vector< T >::x, Vector< T >::y, and Vector< T >::z.

◆ RigidBodyFit()

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().

◆ SetRotationMatrix()

void SetRotationMatrix ( Matrix m,
const Vector v,
double  rad,
int  n = 1 
)

◆ SetScaleMatrix()

void SetScaleMatrix ( Matrix m,
const Vector v 
)

Definition at line 53 of file vector_math.cpp.

References Matrix< T >::m, Vector< T >::x, Vector< T >::y, and Vector< T >::z.

◆ SetTranslationMatrix()

void SetTranslationMatrix ( Matrix m,
const Vector v,
int  n = 1 
)

Definition at line 45 of file vector_math.cpp.

References n.

Referenced by StructureObject::RealignStructure(), and StructureObject::SetTransformToMaster().

Modified on Wed Sep 04 15:04:52 2024 by modify_doxy.py rev. 669887