NAMD
Functions
FreeEnergyVector.C File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "InfoStream.h"
#include "FreeEnergyEnums.h"
#include "FreeEnergyAssert.h"
#include "Vector.h"
#include "FreeEnergyVector.h"

Go to the source code of this file.

Functions

void SetEqual (AVector &Vec1, const Vector &Vec2)
 
void SetEqual (Vector &Vec1, const AVector &Vec2)
 

Function Documentation

void SetEqual ( AVector Vec1,
const Vector Vec2 
)

Definition at line 146 of file FreeEnergyVector.C.

References AVector::m_x, AVector::m_y, AVector::m_z, Vector::x, Vector::y, and Vector::z.

Referenced by ARestraint::DistributeForce(), and ARestraint::UpdateCOMs().

146  {
147 //------------------------------------------------------------------------
148 // used for casting Vector -> AVector
149 //------------------------------------------------------------------------
150  Vec1.m_x = Vec2.x;
151  Vec1.m_y = Vec2.y;
152  Vec1.m_z = Vec2.z;
153 }
BigReal z
Definition: Vector.h:66
double m_z
BigReal x
Definition: Vector.h:66
BigReal y
Definition: Vector.h:66
double m_x
double m_y
void SetEqual ( Vector Vec1,
const AVector Vec2 
)

Definition at line 156 of file FreeEnergyVector.C.

References AVector::m_x, AVector::m_y, AVector::m_z, Vector::x, Vector::y, and Vector::z.

156  {
157 //------------------------------------------------------------------------
158 // used for casting AVector -> Vector
159 //------------------------------------------------------------------------
160  Vec1.x = Vec2.m_x;
161  Vec1.y = Vec2.m_y;
162  Vec1.z = Vec2.m_z;
163 }
BigReal z
Definition: Vector.h:66
double m_z
BigReal x
Definition: Vector.h:66
BigReal y
Definition: Vector.h:66
double m_x
double m_y