source: branches/FACT++_part_filenames/erfa/src/cp.c@ 19133

Last change on this file since 19133 was 18711, checked in by tbretz, 8 years ago
Updated to ERFA 1.3.0 (no relevant code change except the leap second at the beginning of 2017)
File size: 3.3 KB
Line 
1#include "erfa.h"
2
3void eraCp(double p[3], double c[3])
4/*
5** - - - - - -
6** e r a C p
7** - - - - - -
8**
9** Copy a p-vector.
10**
11** Given:
12** p double[3] p-vector to be copied
13**
14** Returned:
15** c double[3] copy
16**
17** Copyright (C) 2013-2016, NumFOCUS Foundation.
18** Derived, with permission, from the SOFA library. See notes at end of file.
19*/
20{
21 c[0] = p[0];
22 c[1] = p[1];
23 c[2] = p[2];
24
25 return;
26
27}
28/*----------------------------------------------------------------------
29**
30**
31** Copyright (C) 2013-2016, NumFOCUS Foundation.
32** All rights reserved.
33**
34** This library is derived, with permission, from the International
35** Astronomical Union's "Standards of Fundamental Astronomy" library,
36** available from http://www.iausofa.org.
37**
38** The ERFA version is intended to retain identical functionality to
39** the SOFA library, but made distinct through different function and
40** file names, as set out in the SOFA license conditions. The SOFA
41** original has a role as a reference standard for the IAU and IERS,
42** and consequently redistribution is permitted only in its unaltered
43** state. The ERFA version is not subject to this restriction and
44** therefore can be included in distributions which do not support the
45** concept of "read only" software.
46**
47** Although the intent is to replicate the SOFA API (other than
48** replacement of prefix names) and results (with the exception of
49** bugs; any that are discovered will be fixed), SOFA is not
50** responsible for any errors found in this version of the library.
51**
52** If you wish to acknowledge the SOFA heritage, please acknowledge
53** that you are using a library derived from SOFA, rather than SOFA
54** itself.
55**
56**
57** TERMS AND CONDITIONS
58**
59** Redistribution and use in source and binary forms, with or without
60** modification, are permitted provided that the following conditions
61** are met:
62**
63** 1 Redistributions of source code must retain the above copyright
64** notice, this list of conditions and the following disclaimer.
65**
66** 2 Redistributions in binary form must reproduce the above copyright
67** notice, this list of conditions and the following disclaimer in
68** the documentation and/or other materials provided with the
69** distribution.
70**
71** 3 Neither the name of the Standards Of Fundamental Astronomy Board,
72** the International Astronomical Union nor the names of its
73** contributors may be used to endorse or promote products derived
74** from this software without specific prior written permission.
75**
76** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
77** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
78** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
79** FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
80** COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
81** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
82** BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
83** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
84** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
85** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
86** ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
87** POSSIBILITY OF SUCH DAMAGE.
88**
89*/
Note: See TracBrowser for help on using the repository browser.