﻿ What object is this cross in a circle?

• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 What object is this cross in a circle? Rinoldo PracticeBot Posts: 14 Threads: 3 Joined: Mar 2016 Reputation: 0 #8 03-19-2016, 04:32 AM (03-18-2016, 07:04 PM)tomaszkax86 Wrote: Angle in degrees can be used in sin() and cos() to compute Cartesian direction. In standard math: Code:```float radius = 5.0f; float dx = radius * cos(angle); float dy = radius * sin(angle);``` dx and dy will be the change you need to apply to position. radius is the distance from the object.  It's not clear for me how do we know that we need to put into radius exactly 5.0f? Isn't the distance from the object changes as the bot moves? And what does means the letter f after 5.0? « Next Oldest | Next Newest »

 Messages In This Thread What object is this cross in a circle? - by Rinoldo - 03-18-2016, 10:43 AM RE: What object is this cross in a circle? - by krzys_h - 03-18-2016, 11:04 AM RE: What object is this cross in a circle? - by Rinoldo - 03-18-2016, 11:34 AM RE: What object is this cross in a circle? - by tomaszkax86 - 03-18-2016, 12:50 PM RE: What object is this cross in a circle? - by Rinoldo - 03-18-2016, 02:52 PM RE: What object is this cross in a circle? - by krzys_h - 03-18-2016, 02:51 PM RE: What object is this cross in a circle? - by tomaszkax86 - 03-18-2016, 07:04 PM RE: What object is this cross in a circle? - by Rinoldo - 03-19-2016, 04:32 AM RE: What object is this cross in a circle? - by melex750 - 03-19-2016, 07:20 AM RE: What object is this cross in a circle? - by Rinoldo - 03-19-2016, 03:59 PM RE: What object is this cross in a circle? - by Simbax - 03-19-2016, 05:02 PM RE: What object is this cross in a circle? - by Rinoldo - 03-26-2016, 06:05 PM RE: What object is this cross in a circle? - by krzys_h - 03-26-2016, 06:25 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)