|
AcGePoint3d pStart = pUtils->GetStartPoint();
AcGePoint3d pEnd = pUtils->GetEndPoint(pStart);
AcGeVector3d v1(pStart.x,pStart.y,pStart.z);
AcGeVector3d v2(pEnd.x,pEnd.y,pEnd.z);
AcGeVector3d v3(pStart.x + Length/2,pEnd.y,pStart.z);
double Angle = v1.angleTo(v2,v3) ;
ads_printf("\nAndrew - Angle: %.2lf\n",Angle); |
|