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