ScalarDifferenceOfSegmentConstraint Constructor (Scalar, SegmentDefinition, Double, Double, ScalarConstraintDifference, SolverConstraintScaling) |
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 ScalarDifferenceOfSegmentConstraint(
Scalar scalar,
SegmentDefinition segment,
double desiredValue,
double tolerance,
ScalarConstraintDifference constraintDifference,
SolverConstraintScaling scaling
)
Public Sub New (
scalar As Scalar,
segment As SegmentDefinition,
desiredValue As Double,
tolerance As Double,
constraintDifference As ScalarConstraintDifference,
scaling As SolverConstraintScaling
)
public:
ScalarDifferenceOfSegmentConstraint(
Scalar^ scalar,
SegmentDefinition^ segment,
double desiredValue,
double tolerance,
ScalarConstraintDifference constraintDifference,
SolverConstraintScaling^ scaling
)
new :
scalar : Scalar *
segment : SegmentDefinition *
desiredValue : float *
tolerance : float *
constraintDifference : ScalarConstraintDifference *
scaling : SolverConstraintScaling -> ScalarDifferenceOfSegmentConstraint
Parameters
- scalar
- Type: AGI.Foundation.GeometryScalar
The Scalar to use to compare to the
desiredValue. - segment
- Type: AGI.Foundation.SegmentPropagationSegmentDefinition
The SegmentDefinition whose initial and final states 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...). - scaling
- Type: AGI.Foundation.NumericalMethodsSolverConstraintScaling
The type of scaling to be used on this constraint.
See Also