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

00156                                                   {
00157 //------------------------------------------------------------------------
00158 // used for casting AVector -> Vector
00159 //------------------------------------------------------------------------
00160   Vec1.x = Vec2.m_x;
00161   Vec1.y = Vec2.m_y;
00162   Vec1.z = Vec2.m_z;
00163 }

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

00146                                                  {
00147 //------------------------------------------------------------------------
00148 // used for casting Vector -> AVector
00149 //------------------------------------------------------------------------
00150   Vec1.m_x = Vec2.x;
00151   Vec1.m_y = Vec2.y;
00152   Vec1.m_z = Vec2.z;
00153 }


Generated on Mon Nov 20 01:17:15 2017 for NAMD by  doxygen 1.4.7