Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
VecSub3.c
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file VecSub3.c
5 
6  \version V1.4
7  \date 07.07.14
8  \brief
9 
10  \copyright (c) UCL / Dr. Andrew C. R. Martin 1996-2014
11  \author Dr. Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39 
40 **************************************************************************
41 
42  Usage:
43  ======
44 
45 **************************************************************************
46 
47  Revision History:
48  =================
49 - V1.0 29.01.96 Original By: ACRM
50 - V1.1 18.06.96 Added vector routines
51 - V1.2 06.10.98 Added VecAdd3()
52 - V1.4 07.07.14 Use bl prefix for functions By: CTP
53 
54 *************************************************************************/
55 /* Doxygen
56  -------
57  #GROUP Maths
58  #SUBGROUP Vectors
59  #FUNCTION blVecSub3()
60  Subtract 2 vectors
61 */
62 /************************************************************************/
63 /* Includes
64 */
65 #include "MathType.h"
66 
67 /************************************************************************/
68 /* Defines and macros
69 */
70 
71 /************************************************************************/
72 /* Globals
73 */
74 
75 /************************************************************************/
76 /* Prototypes
77 */
78 
79 
80 /************************************************************************/
81 /*>void blVecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
82  ------------------------------------------------
83 *//**
84 
85  \param[in] In1 First vector
86  \param[in] In2 Second vector
87  \param[out] Out Output vector
88 
89  Subtract 2 vectors
90 - 18.06.96 Original By: ACRM
91 - 07.07.14 Use bl prefix for functions By: CTP
92 
93 */
94 void blVecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
95 {
96  Out->x = In1.x - In2.x;
97  Out->y = In1.y - In2.y;
98  Out->z = In1.z - In2.z;
99 }
100 
101 
REAL x
Definition: MathType.h:70
Definition: MathType.h:69
void blVecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
Definition: VecSub3.c:94
Type definitions for maths.
REAL z
Definition: MathType.h:70
REAL y
Definition: MathType.h:70