source: trunk/FACT++/sofa/src/cp.c@ 18355

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