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 should do.
    there should not be any issue if values of p1& p3 changes significantly?
    sorry, i'm quite slaggy in trigo..


    There could be a problem if PROJ_Y=0, because the ATAN would be in error.
    It can happens if
    PROJ_Y1=PROJ_Y2
    P0*SIN(DEG2RAD(90-P1)=P2*SIN(DEG2RAD(90-P3)
    P0*COS(P1)=P2*COS(P3)
    P0/P2=COS(P3)/COS(P1) with P1<>±90
    So you if You find this case, just add a few 0.000001° to avoid the division by zero Slight smile !

    Happy week-end, all, here it's time to go home Slight smile
Reply


  • thanks for sharing, this should do.
    there should not be any issue if values of p1& p3 changes significantly?
    sorry, i'm quite slaggy in trigo..


    There could be a problem if PROJ_Y=0, because the ATAN would be in error.
    It can happens if
    PROJ_Y1=PROJ_Y2
    P0*SIN(DEG2RAD(90-P1)=P2*SIN(DEG2RAD(90-P3)
    P0*COS(P1)=P2*COS(P3)
    P0/P2=COS(P3)/COS(P1) with P1<>±90
    So you if You find this case, just add a few 0.000001° to avoid the division by zero Slight smile !

    Happy week-end, all, here it's time to go home Slight smile
Children