Class SphereConstraint
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A sphere constraint.
public sealed class SphereConstraint : Constraint
- Inheritance
-
SphereConstraint
- Inherited Members
Constructors
SphereConstraint(int, Point3D, double)
Initializes a new instance of the SphereConstraint class.
public SphereConstraint(int index, Point3D center, double radius)
Parameters
Properties
Center
Gets or sets the center.
public Point3D Center { get; set; }
Property Value
- Point3D
The center.
Index
Gets or sets the index.
public int Index { get; set; }
Property Value
- int
The index.
Radius
Gets or sets the radius.
public double Radius { get; set; }
Property Value
- double
The radius.
RadiusSquared
Gets or sets the radius squared.
public double RadiusSquared { get; set; }
Property Value
- double
The radius squared.
Methods
Satisfy(VerletIntegrator, int)
Satisfies the constraint.
public override void Satisfy(VerletIntegrator vs, int iteration)
Parameters
vsVerletIntegratorThe verlet system.
iterationintThe iteration.