hexagon logo

Vector Calculation

Hello everyone,
I need to calculate the resultant vector as shown in image attached
Is there a way to do this kind of calculation in PC-DMIS?
Parents
  • Thanks for sharing this scheme, it helped me understanding what are datas Slight smile !
    I wrote this code line by line to be more explicit...

    ASSIGN/P0=0.0004
    ASSIGN/P1=137
    ASSIGN/P2=0.0016
    ASSIGN/P3=62
    ASSIGN/PROJ_X1=P0*COS(DEG2RAD(90-P1)
    ASSIGN/PROJ_X2=P2*COS(DEG2RAD(90-P3)
    ASSIGN/PROJ_Y1=P0*SIN(DEG2RAD(90-P1)
    ASSIGN/PROJ_Y2=P2*SIN(DEG2RAD(90-P3)
    ASSIGN/PROJ_X2M=-P2*COS(DEG2RAD(90-P3)
    ASSIGN/PROJ_Y2M=-P2*SIN(DEG2RAD(90-P3)
    ASSIGN/PROJ_X=PROJ_X1+PROJ_X2M
    ASSIGN/PROJ_Y=PROJ_Y1+PROJ_Y2M
    ASSIGN/LENGTH_R=SQRT(PROJ_X^2+PROJ_Y^2)
    ASSIGN/ANGLE_R=RAD2DEG(ATAN(PROJ_X/PROJ_Y)+180
    
    or directly
    ASSIGN/LENGTH_R=SQRT((P0*COS(DEG2RAD(90-P1)-P2*COS(DEG2RAD(90-P3))^2+(P0*SIN(DEG2RAD(90-P1)-P2*SIN(DEG2RAD(90-P3))^2)
    ASSIGN/ANGLE_R=RAD2DEG(ATAN((P0*COS(DEG2RAD(90-P1)-P2*COS(DEG2RAD(90-P3))/(P0*SIN(DEG2RAD(90-P1)-P2*SIN(DEG2RAD(90-P3)))+180


    {"data-align":"none","data-size":"large","data-attachmentid":514241}


    how the actual f*ck does your brain do this ? i am always in awe of the stuff you come up with
  • It is beautiful... (but I have no clue what I am looking at... just like with art).
Reply Children
No Data