source: trunk/FACT++/sofa/src/ppsp.c@ 18375

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