Exemplo n.º 1
0
        bool CalculateArcLength(double arcLength)
        {
            double radius = GetRadius();

            if ((arcLength == 0) || (radius == 0))
            {
                return(false);
            }

            double chordLength;
            bool   isMinor;

            if (!GeometryUtil.CalculateArcLength(radius, arcLength, out chordLength, out isMinor))
            {
                return(false);
            }

            _chordLengthValue = chordLength;
            _arcLengthValue   = arcLength;
            _minorCurve       = isMinor;

            return(true);
        }