Exemplo n.º 1
0
        public Point GetPoint(double length, double segmentLength)
        {
            if (length < 0 || length > Length)
            {
                throw new ArgumentOutOfRangeException();
            }
            if (_isReverse)
            {
                length = Length - length;
            }
            var parameter = GraphicHelper.GetParameter(_degree, _controlPoints, _knots, _weights, _startParameter, length, _length, segmentLength);

            return(GraphicHelper.ComputePoint(_degree, _knots, _controlPoints, _weights, parameter));
        }
Exemplo n.º 2
0
 private void _Init()
 {
     _length = GraphicHelper.ComputeArcLength(_degree, _knots, _controlPoints, _weights, _startParameter, _endParameter, 0.1);
     _start  = GraphicHelper.ComputePoint(_degree, _knots, _controlPoints, _weights, _startParameter);
     _end    = GraphicHelper.ComputePoint(_degree, _knots, _controlPoints, _weights, _endParameter);
 }