source: trunk/FACT++/sofa/src/s2xpv.c@ 18365

Last change on this file since 18365 was 18346, checked in by tbretz, 10 years ago
File size: 5.2 KB
Line 
1#include "sofa.h"
2
3void iauS2xpv(double s1, double s2, double pv[2][3], double spv[2][3])
4/*
5** - - - - - - - - -
6** i a u S 2 x p v
7** - - - - - - - - -
8**
9** Multiply a pv-vector by two scalars.
10**
11** This function is part of the International Astronomical Union's
12** SOFA (Standards Of Fundamental Astronomy) software collection.
13**
14** Status: vector/matrix support function.
15**
16** Given:
17** s1 double scalar to multiply position component by
18** s2 double scalar to multiply velocity component by
19** pv double[2][3] pv-vector
20**
21** Returned:
22** spv double[2][3] pv-vector: p scaled by s1, v scaled by s2
23**
24** Note:
25** It is permissible for pv and spv to be the same array.
26**
27** Called:
28** iauSxp multiply p-vector by scalar
29**
30** This revision: 2013 June 18
31**
32** SOFA release 2015-02-09
33**
34** Copyright (C) 2015 IAU SOFA Board. See notes at end.
35*/
36{
37 iauSxp(s1, pv[0], spv[0]);
38 iauSxp(s2, pv[1], spv[1]);
39
40 return;
41
42/*----------------------------------------------------------------------
43**
44** Copyright (C) 2015
45** Standards Of Fundamental Astronomy Board
46** of the International Astronomical Union.
47**
48** =====================
49** SOFA Software License
50** =====================
51**
52** NOTICE TO USER:
53**
54** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
55** CONDITIONS WHICH APPLY TO ITS USE.
56**
57** 1. The Software is owned by the IAU SOFA Board ("SOFA").
58**
59** 2. Permission is granted to anyone to use the SOFA software for any
60** purpose, including commercial applications, free of charge and
61** without payment of royalties, subject to the conditions and
62** restrictions listed below.
63**
64** 3. You (the user) may copy and distribute SOFA source code to others,
65** and use and adapt its code and algorithms in your own software,
66** on a world-wide, royalty-free basis. That portion of your
67** distribution that does not consist of intact and unchanged copies
68** of SOFA source code files is a "derived work" that must comply
69** with the following requirements:
70**
71** a) Your work shall be marked or carry a statement that it
72** (i) uses routines and computations derived by you from
73** software provided by SOFA under license to you; and
74** (ii) does not itself constitute software provided by and/or
75** endorsed by SOFA.
76**
77** b) The source code of your derived work must contain descriptions
78** of how the derived work is based upon, contains and/or differs
79** from the original SOFA software.
80**
81** c) The names of all routines in your derived work shall not
82** include the prefix "iau" or "sofa" or trivial modifications
83** thereof such as changes of case.
84**
85** d) The origin of the SOFA components of your derived work must
86** not be misrepresented; you must not claim that you wrote the
87** original software, nor file a patent application for SOFA
88** software or algorithms embedded in the SOFA software.
89**
90** e) These requirements must be reproduced intact in any source
91** distribution and shall apply to anyone to whom you have
92** granted a further right to modify the source code of your
93** derived work.
94**
95** Note that, as originally distributed, the SOFA software is
96** intended to be a definitive implementation of the IAU standards,
97** and consequently third-party modifications are discouraged. All
98** variations, no matter how minor, must be explicitly marked as
99** such, as explained above.
100**
101** 4. You shall not cause the SOFA software to be brought into
102** disrepute, either by misuse, or use for inappropriate tasks, or
103** by inappropriate modification.
104**
105** 5. The SOFA software is provided "as is" and SOFA makes no warranty
106** as to its use or performance. SOFA does not and cannot warrant
107** the performance or results which the user may obtain by using the
108** SOFA software. SOFA makes no warranties, express or implied, as
109** to non-infringement of third party rights, merchantability, or
110** fitness for any particular purpose. In no event will SOFA be
111** liable to the user for any consequential, incidental, or special
112** damages, including any lost profits or lost savings, even if a
113** SOFA representative has been advised of such damages, or for any
114** claim by any third party.
115**
116** 6. The provision of any version of the SOFA software under the terms
117** and conditions specified herein does not imply that future
118** versions will also be made available under the same terms and
119** conditions.
120*
121** In any published work or commercial product which uses the SOFA
122** software directly, acknowledgement (see www.iausofa.org) is
123** appreciated.
124**
125** Correspondence concerning SOFA software should be addressed as
126** follows:
127**
128** By email: sofa@ukho.gov.uk
129** By post: IAU SOFA Center
130** HM Nautical Almanac Office
131** UK Hydrographic Office
132** Admiralty Way, Taunton
133** Somerset, TA1 2DN
134** United Kingdom
135**
136**--------------------------------------------------------------------*/
137}
Note: See TracBrowser for help on using the repository browser.