Table of Contents

Method ModifyPositionAndTangent

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ModifyPositionAndTangent(double, GeoPoint3, GeoVector3)

Moves the control points so that the spline passes a point at a parameter in a direction there, as AutoCAD's ModifyPositionAndTangent: the points the span of the parameter is made of each moved the least that does it (the change of least squares that meets the point and the derivative), the weights kept. A spline of fit data keeps its points at its knots as fit points, of parameters of its own, as AutoCAD 2021 saved its cubic through five points so moved 70 1288 and its closed one 1289 (its D32b run).

public void ModifyPositionAndTangent(double param, GeoPoint3 point, GeoVector3 deriv)

Parameters

param double

The parameter, from StartParam to EndParam.

point GeoPoint3

The point the spline is to pass there, in the world.

deriv GeoVector3

The derivative it is to have there, by the parameter, as GetFirstDerivative(double) gives one.

Exceptions

ArgumentOutOfRangeException

Thrown when the parameter is past either end.

ArgumentException

Thrown when the point or the derivative is not finite.

InvalidOperationException

Thrown when the spline has no data that make a spline, or is erased.