Beispiel #1
0
        public override ICurve2D Trim(double StartPos, double EndPos)
        {
            double      us  = PosToPar(StartPos);
            double      ue  = PosToPar(EndPos);
            SineCurve2D res = Clone() as SineCurve2D;

            res.ustart = us;
            res.udiff  = ue - us;
            return(res);
        }
Beispiel #2
0
        public override void Copy(ICurve2D toCopyFrom)
        {
            SineCurve2D other = toCopyFrom as SineCurve2D;

            if (other is SineCurve2D)
            {
                ustart   = other.ustart;
                udiff    = other.udiff;
                fromUnit = other.fromUnit;
            }
        }