1. Theory 2. Example Circular motion start at (Px 1 ,Py 1 ,theta 1 ) = (5,4,128.6598 o ) with 30 o angular displacement. 3. Code #include <iostream> #include <iomanip> #include <math.h> #define PI 3.14159265 using namespace std; int main () { double motion0[4] = {5,4,128.6598,30}; // Example Starting :{Px1,Py1,theta1,dtime} double dtheta = 30 * (PI/180); double radius = 6.4031; double motion1[4] ; // {Px2,Py2,theta2,dtime} cout << motion0[0] << ";" << motion0[1] << ";" << motion0[2] << endl; motion0[2] = motion0[2] * (PI/180); //Change to radians for ( int i = 0; i < 20; i++) ...
Blog ini tiada mewakili mana-mana entity.