Be careful about the angles

Yesterday, when I tried to improve my program following my supervisor’s suggestions, I wrote lines of codes which just calculated the position of an object. And this kind of things I have done for many times in this program. But when I test it. All the time I got a really mass picture in which the objects are wrongly positioned. No other reasons could be. However, after many times’ verifications, checking and re-analyzing. I could find nothing goes wrong!

Till the time to go back, I still haven’t got what is wrong with my program. Having English classes this morning, my thought came to this problem again in the class then quickly went back to the class. After lunch, open my computer, check emails, see whether there are something interesting or not and then come back to my program.

Try several ways again. No progress. Suddenly, when I focus on the mass picture the wrong program creates, I found maybe it’s the angle or the sign which is wrong. Next read the program, Gosh! I have not change the degree format of the angle to radius format before I use the built-in Mathematical  functions!

Why I am that careless! Do be careful when using angles in your program. Make sure the format of the angle is exactly right!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值