Basic question about SPICE and using vadd_c |
Basic question about SPICE and using vadd_c |
Jul 5 2018, 05:55 PM
Post
#1
|
|
Junior Member Group: Members Posts: 91 Joined: 21-August 06 Member No.: 1063 |
Hello,
In the documentation for cspice found here: https://naif.jpl.nasa.gov/pub/naif/toolkit_...ice/vadd_c.html It says: "vout may overwrite either v1 or v2" "can overwrite either v1 or v2" my question: Under what circumstance would vout overwrite v1 or v2? Can someone explain this wording? Those words about overwrite are not mentioned under FORTRANspice or IDLspice online documentation. Is this a bug in Cspice or why is this mentioned here? I ask because when using the vadd_c in my code I have got some unpredicatble results and wondering if this "overwriting" is causing the probem or my confusion. The simple example provided by the documentation works fine for me though in my code. Ideas anyone? thanks |
|
|
Jul 5 2018, 07:56 PM
Post
#2
|
|
Senior Member Group: Members Posts: 2511 Joined: 13-September 05 Member No.: 497 |
my question: Under what circumstance would vout overwrite v1 or v2? Can someone explain this wording? If vout was the same variable as v1 or v2. All it's saying is that this is OK. Adding two vectors shouldn't really be confusing. -------------------- Disclaimer: This post is based on public information only. Any opinions are my own.
|
|
|
Jul 5 2018, 11:45 PM
Post
#3
|
|
Junior Member Group: Members Posts: 91 Joined: 21-August 06 Member No.: 1063 |
|
|
|
Lo-Fi Version | Time is now: 26th April 2024 - 02:21 PM |
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |