public EdgeConstraint(Point a, Point b, float length, EdgeConstraintType type) { this.a = a; this.b = b; this.length = length; this.type = type; }
public static EdgeConstraint AddEdgeConstraint(Point a, Point b, float distance, EdgeConstraintType type) { EdgeConstraint edgeConstraint = new EdgeConstraint(a, b, distance, type); Instance.edgeConstraints.Add(edgeConstraint); return(edgeConstraint); }