Returns the length of the given constraint, which is the distance between the two points.
name | type | description |
---|---|---|
constraint | MatterJS.ConstraintType |
The constraint to get the length from. |
The length of the constraint.