Last change
on this file since 19137 was 731, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
545 bytes
|
Line | |
---|
1 | #include "slalib.h"
|
---|
2 | #include "slamac.h"
|
---|
3 | double slaDvdv ( double va[3], double vb[3] )
|
---|
4 | /*
|
---|
5 | ** - - - - - - - -
|
---|
6 | ** s l a D v d v
|
---|
7 | ** - - - - - - - -
|
---|
8 | **
|
---|
9 | ** Scalar product of two 3-vectors.
|
---|
10 | **
|
---|
11 | ** (double precision)
|
---|
12 | **
|
---|
13 | **
|
---|
14 | ** Given:
|
---|
15 | ** va double(3) first vector
|
---|
16 | ** vb double(3) second vector
|
---|
17 | **
|
---|
18 | **
|
---|
19 | ** The result is the scalar product va.vb (double precision)
|
---|
20 | **
|
---|
21 | **
|
---|
22 | ** Last revision: 31 October 1993
|
---|
23 | **
|
---|
24 | ** Copyright P.T.Wallace. All rights reserved.
|
---|
25 | */
|
---|
26 | {
|
---|
27 | return va[0] * vb[0] + va[1] * vb[1] + va[2] * vb[2];
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.