public override ICurve[] Split(double Position) { double p = startParam + (endParam - startParam) * Position; IntermediateCurve im1 = this.Clone() as IntermediateCurve; IntermediateCurve im2 = this.Clone() as IntermediateCurve; im1.endParam = p; im2.startParam = p; return(new ICurve[] { im1, im2 }); }
/// <summary> /// Overrides <see cref="CADability.GeoObject.IGeoObjectImpl.CopyGeometry (IGeoObject)"/> /// </summary> /// <param name="ToCopyFrom"></param> public override void CopyGeometry(IGeoObject ToCopyFrom) { IntermediateCurve other = ToCopyFrom as IntermediateCurve; this.firstCurve = other.firstCurve; this.secondCurve = other.secondCurve; this.v = other.v; this.startParam = other.startParam; this.endParam = other.endParam; }