[go: up one dir, main page]

Menu

[r9]: / src / rasmol / vector.h  Maximize  Restore  History

Download this file

83 lines (71 with data), 3.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**************************************************************************
* *
* RasTop *
* *
* Molecular Graphics Visualisation Tool *
* *
* *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA- *
* BILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public *
* License for more details (license.txt file ). *
* *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
* *
***************************************************************************/
/* Authors:
*
* Please consult the help manual for more information about copyright
* holders and version history of RasTop/RasMol source.
*
* Make sure to add your name to this list if you modify this file.
*
* Herbert J. Bernstein
* Christian Duqué
* Gary Grossman
* Marco Molinaro
* Arne Mueller
* Naoum Salamé
* Roger Sayle
* Philippe Valadon
*/
/* vector.h
*/
/* Original file header: */
/**********************************************************************
Copyright (c) 1995 UC Regents, ModularCHEM Consortium
vector.h
Vector Library for Rasmol
Author: Gary Grossman (garyg@cory.EECS.Berkeley.EDU)
Last Update: November 14, 1995
**********************************************************************/
#ifndef VECTOR_H
#define VECTOR_H
#define sqr(x) ((x)*(x))
double Length( double[3] );
double DotProduct( double[3], double[3] );
void AbsoluteVector( double[3] );
void CrossProduct( double[3], double[3], double[3] );
double RadToDegrees( double );
void PrintVector( double[3] );
void SubtractAtoms( RAtom __far *a, RAtom __far *b, double[3] );
void NormalizeVector( double[3] );
void MultMatrix( double[4][4], double[4][4], double[4][4] );
void IdentityMatrix3( double[3][3] );
void IdentityMatrix( double[4][4] );
void ZeroMatrix( double M[4][4] );
void PrintMatrix( double[4][4]);
void RotXMatrix( double[4][4], double );
void RotYMatrix( double[4][4], double );
void RotZMatrix( double[4][4], double );
void RotateAxisMatrix( double[4][4], double, double, double, double );
void CopyMatrix3( double [3][3], double [3][3] );
void CopyMatrix4( double [4][4], double [4][4] );
double NormMatrix3( double [3][3] );
#endif