cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
i need help
Page 2
i need help
Pages:
1
2
Apr 17, 2016 at 3:08am UTC
warrior757
(58)
nevermind had to reload it and it works
Apr 17, 2016 at 3:10am UTC
warrior757
(58)
now it just giving me zero when i try to use actual numbers
Apr 17, 2016 at 3:12am UTC
closed account (
D80DSL3A
)
Glad you got it working.
Of course (1,0,0)X(0,0,0) = (0,0,0).
Try (1,0,0)X(0,1,0) should get (0,0,1)
edit: Re. TheIdeaMan advice about using type double.
I'm sorry I didn't see that. Yes, change x,y,z to type double.
Keep going!
Last edited on
Apr 17, 2016 at 9:27am UTC
Apr 17, 2016 at 8:52am UTC
TheIdeasMan
(6817)
Hi,
Could I just mention that you should change the types to double - won't get very with vector math without them; need magnitude, unit vectors etc. Your problem is a physics one, so you need them there too.
Good Luck !!
Topic archived. No new replies allowed.
Pages:
1
2