Class DistanceConstraint
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A distance constraint.
public sealed class DistanceConstraint : Constraint
- Inheritance
-
DistanceConstraint
- Inherited Members
Constructors
DistanceConstraint(int, int)
Initializes a new instance of the DistanceConstraint class.
public DistanceConstraint(int A, int B)
Parameters
Properties
Index1
Gets or sets the index1.
public int Index1 { get; set; }
Property Value
- int
The index1.
Index2
Gets or sets the index2.
public int Index2 { get; set; }
Property Value
- int
The index2.
Iterations
Gets or sets the iterations.
public int Iterations { get; set; }
Property Value
- int
The iterations.
RelaxationFactor
Gets or sets the relaxation factor.
public double RelaxationFactor { get; set; }
Property Value
- double
The relaxation factor.
Restlength
Gets or sets the restlength.
public double Restlength { get; set; }
Property Value
- double
The restlength.
Methods
Satisfy(VerletIntegrator, int)
Satisfies the constraint.
public override void Satisfy(VerletIntegrator vs, int iteration)
Parameters
vsVerletIntegratorThe verlet system.
iterationintThe iteration.