|
double EcsRotation(const AcGeVector3d &ucsXdir, const AcGeVector3d &ucsYdir) {
AcGeVector3d ucsZdir = ucsXdir.crossProduct(ucsYdir);
AcGeVector3d zPerp(ucsZdir.perpVector());
return ucsXdir.angleTo(zPerp, ucsZdir);
}
double EcsRotation(AcDbDatabase* pDB) {
return EcsRotation(pDB->ucsxdir(), pDB->ucsydir());
} |
|