Click or drag to resize

ScalarDifferenceOfSegmentConstraint Constructor (SegmentDefinition, Double, Double, ScalarConstraintDifference)

Initializes a new instance.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.SegmentPropagation (in AGI.Foundation.SegmentPropagation.dll) Version: 21.1.408.0 (21.1.408.0)
Syntax
public ScalarDifferenceOfSegmentConstraint(
	SegmentDefinition segment,
	double desiredValue,
	double tolerance,
	ScalarConstraintDifference constraintDifference
)

Parameters

segment
Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The SegmentDefinition whose final state will be used to compute the Scalar.
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.
constraintDifference
Type: AGI.Foundation.NumericalMethodsScalarConstraintDifference
The type of the difference to evaluate (first minus last, or last minus first...).
See Also