Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Vector Dependencies with intial Movement and Gravity
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kassadin




PostPosted: Sun May 12, 2013 6:37 pm   Post subject: Vector Dependencies with intial Movement and Gravity

Hi

I have this seminar in school where we should write a program.

I am trying for a while now on Ubuntu 12.04 with GCC and GNU Scientific Library to write a
small program for 2 objects with initial movement speed and their gravitational attraction towards
eachother. The location of each object should be then given as a 2 dimensional x y coordinate.

The movement speed and gravity should be expressed by vectors in a numerical time series.

Thanks very much for an answer.
Sponsor
Sponsor
Sponsor
sponsor
Nathan4102




PostPosted: Sun May 12, 2013 6:45 pm   Post subject: RE:Vector Dependencies with intial Movement and Gravity

We don't do homework for people, and we don't write assignments for people. If you'd like, we can assist you if you have a problem though. Have you tried writing this? Where did you get to?
ncvitak




PostPosted: Sun Jun 09, 2013 6:42 pm   Post subject: Re: Vector Dependencies with intial Movement and Gravity

start off by making a vector3f class:

c++:
class Vector3f {
public:
    float x;
    float y;
    float z;
}

Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: