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.3.420.0 (24.3.420.0)
Syntax public DelegateBasedConstraint(
DelegateBasedConstraintCallback callback,
SegmentDefinition segment,
double desiredValue,
double tolerance
)
Public Sub New (
callback As DelegateBasedConstraintCallback,
segment As SegmentDefinition,
desiredValue As Double,
tolerance As Double
)
public:
DelegateBasedConstraint(
DelegateBasedConstraintCallback^ callback,
SegmentDefinition^ segment,
double desiredValue,
double tolerance
)
new :
callback : DelegateBasedConstraintCallback *
segment : SegmentDefinition *
desiredValue : float *
tolerance : float -> DelegateBasedConstraint
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