变换矩阵

AcGePoint3d ptTemp(xTemp, yTemp, 0);
AcGeVector3d vecTemp = AcGePoint3d::kOrigin-ptTemp;
AcGeMatrix3d mat;
double dXzj = _wtof(m_sXzj);
mat.setToRotation(-CConvertUtil::AngleToRadian(dXzj), AcGeVector3d::kZAxis/*ptTemp*/,AcGePoint3d(0, 0, 0));
mat.setTranslation(vecTemp.transformBy(mat));
AcGePoint3d ptRotation = ptInsert.transformBy(mat);
x = decimalNum(ptRotation.x, iJd);
y = decimalNum(ptRotation.y, iJd);

原文地址:https://www.cnblogs.com/xzh1993/p/7644829.html