GetFanMotifAngleRadians()
{
Debug.Assert(m_oCollapsedGroupAttributes != null);
AssertValid();
// Scale the fan's arc by a scale factor stored in the collapsed group
// attributes. The scale factor ranges from 0 to 1.0.
Double dArcScale;
if ( !m_oCollapsedGroupAttributes.TryGetValue(
CollapsedGroupAttributeKeys.ArcScale, out dArcScale) )
{
// Behave gracefully.
dArcScale = 0.5;
}
Double dAngleRadians = MathUtil.TransformValueToRange(
(Single)dArcScale,
0, 1.0F,
(Single)MinimumFanMotifAngleRadians,
(Single)MaximumFanMotifAngleRadians
);
return (dAngleRadians);
}