Click or drag to resize

DelegateBasedConstraint Constructor (DelegateBasedConstraintCallback, SegmentDefinition, Double, Double)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public DelegateBasedConstraint(
	DelegateBasedConstraintCallback callback,
	SegmentDefinition segment,
	double desiredValue,
	double tolerance
)

Parameters

callback
Type: AGI.Foundation.NumericalMethodsDelegateBasedConstraintCallback
The delegate that will compute a value to compare against the DesiredValue.
segment
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The segment that this constraint will act on.
desiredValue
Type: SystemDouble
The desired value that the function will be driven to.
tolerance
Type: SystemDouble
How close the evaluated value must get to the desiredValue to consider this constraint satisfied.
See Also