15,903,724 members
Home / Discussions / Managed C++/CLI

# Managed C++/CLI

 Sharpen filter of bmp image Jakub Bartczak27-Aug-18 21:21 Jakub Bartczak 27-Aug-18 21:21
 Re: Sharpen filter of bmp image Jochen Arndt27-Aug-18 22:56 Jochen Arndt 27-Aug-18 22:56
 please explain this lines of code Hiếu Ngô2-Aug-18 18:18 Hiếu Ngô 2-Aug-18 18:18
 Re: please explain this lines of code Richard MacCutchan2-Aug-18 21:47 Richard MacCutchan 2-Aug-18 21:47
 Re: please explain this lines of code Jochen Arndt2-Aug-18 22:29 Jochen Arndt 2-Aug-18 22:29
 C++/CLI support comes to ReSharper C++ John Schroedl23-Jul-18 6:22 John Schroedl 23-Jul-18 6:22
 To find the angle of turn in a car racing game in C++/SFML Tarun Jha21-Jul-18 23:39 Tarun Jha 21-Jul-18 23:39
 Re: To find the angle of turn in a car racing game in C++/SFML John Schroedl23-Jul-18 6:41 John Schroedl 23-Jul-18 6:41
 Consider the two chunks of code separately. The first two lines are updating angle by a fraction of turnSpeed. If speed were == maxSpeed then speed/maxSpeed = 1. So angle += turnSpeed for a right-turn. turnSpeed = 0.08 so that's in Radians which is 4.58 degrees. This means if you're turning right or left at max speed, it'll add or remove 4.58 degrees each time through. If speed is less than the max, then the angle will change by a smaller amount (a fraction of .08 radians). Try it in the debugger and see the change. The last two lines are updating the x,y location of the car using it's orientation (angle). cos(angle) is typically the x portion of an angle so I'm not sure why it modifies the y coor with that but that's what it does. sin(angle) or cos(angle) produces a value from 0-1 (which it uses as a percentage) * speed. That means x or y changes by a fraction of speed in the direction of angle. It would probably help you to print out the values or use the debugger. Hope this helps, John
 Re: To find the angle of turn in a car racing game in C++/SFML Tarun Jha25-Jul-18 7:36 Tarun Jha 25-Jul-18 7:36
 Small RAII-like cleanup class in C++/CLI John Schroedl15-Jun-18 9:08 John Schroedl 15-Jun-18 9:08
 Information Edit Source code for c++ Member 1165875229-May-18 19:48 Member 11658752 29-May-18 19:48
 Re: Information Edit Source code for c++ Richard MacCutchan29-May-18 21:05 Richard MacCutchan 29-May-18 21:05
 Re: Information Edit Source code for c++ Jochen Arndt30-May-18 2:55 Jochen Arndt 30-May-18 2:55
 Error On a Project I'm Working On. (Sorry If Not descriptive enough, 1st time) CyberFaggot9-May-18 15:53 CyberFaggot 9-May-18 15:53
 Re: Error On a Project I'm Working On. (Sorry If Not descriptive enough, 1st time) Richard MacCutchan11-May-18 21:19 Richard MacCutchan 11-May-18 21:19
 Print causes in afxtls.cpp Erich Ruth19-Apr-18 5:37 Erich Ruth 19-Apr-18 5:37
 Re: Print causes in afxtls.cpp Richard Andrew x6413-May-18 7:22 Richard Andrew x64 13-May-18 7:22
 What is the alternative of _kbhit_ in linux ? Tarun Jha16-Apr-18 4:04 Tarun Jha 16-Apr-18 4:04
 Re: What is the alternative of _kbhit_ in linux ? Maria Okta25-Jul-18 19:23 Maria Okta 25-Jul-18 19:23
 More Than One Operator "+" Matches These Operands Paramu197313-Apr-18 5:26 Paramu1973 13-Apr-18 5:26
 Re: More Than One Operator "+" Matches These Operands Richard MacCutchan13-Apr-18 5:51 Richard MacCutchan 13-Apr-18 5:51
 Re: More Than One Operator "+" Matches These Operands Paramu197313-Apr-18 6:05 Paramu1973 13-Apr-18 6:05
 Re: More Than One Operator "+" Matches These Operands Richard MacCutchan13-Apr-18 6:40 Richard MacCutchan 13-Apr-18 6:40
 Re: More Than One Operator "+" Matches These Operands Paramu197313-Apr-18 14:18 Paramu1973 13-Apr-18 14:18
 How to access the ref class declared DataTable ? Paramu197311-Apr-18 21:10 Paramu1973 11-Apr-18 21:10
 Last Visit: 31-Dec-99 18:00     Last Update: 22-May-24 18:30 Refresh ᐊ Prev1...891011121314151617 Next ᐅ