VECGEOM_CUDA_HEADER_BOTH void TransformationMatrix::SetProperties() { has_translation = ( fabs(trans[0]) > kNearZero || fabs(trans[1]) > kNearZero || fabs(trans[2]) > kNearZero ) ? true : false; has_rotation = (GenerateRotationCode() == rotation::kIdentity) ? false : true; identity = !has_translation && !has_rotation; }
VECGEOM_CUDA_HEADER_BOTH void Transformation3D::SetProperties() { fHasTranslation = ( fabs(fTranslation[0]) > kTolerance || fabs(fTranslation[1]) > kTolerance || fabs(fTranslation[2]) > kTolerance ) ? true : false; fHasRotation = (GenerateRotationCode() == rotation::kIdentity) ? false : true; fIdentity = !fHasTranslation && !fHasRotation; }