33#ifndef eman__transform_h__
34#define eman__transform_h__ 1
211 void set_trans(
const float&
x,
const float&
y,
const float& z=0);
233 void translate(
const float& tx,
const float& ty,
const float& tz=0);
283 template<
typename type>
352 printf(
"%8.6f %8.6f %8.6f %8.6f\n",0.0,0.0,0.0,1.0);
396 inline float at(
int r,
int c)
const {
return matrix[r][c]; }
400 inline void set(
int r,
int c,
float value) {
matrix[r][c] = value; }
429 template<
typename Type>
453 template<
typename Type>
471 static int get_nsym(
const string & sym);
480 vector<Transform >
get_sym_proj(
const string & sym)
const;
530 template<
typename Type>
537 template<
typename Type>
546 template<
typename Type>
549 float x = v[0] * M[0][0] + v[1] * M[1][0] + v[2] * M[2][0] ;
550 float y = v[0] * M[0][1] + v[1] * M[1][1] + v[2] * M[2][1];
551 float z = v[0] * M[0][2] + v[1] * M[1][2] + v[2] * M[2][2];
555 template<
typename type>
Dict is a dictionary to store <string, EMObject> pair.
The Vec2 is precisely the same as Vec3 except it works exclusively in 2D Note there are convenient ty...
EMData * operator*(const EMData &em, float n)