Esempio n. 1
0
 public EdgeConstraint(Point a, Point b, float length, EdgeConstraintType type)
 {
     this.a      = a;
     this.b      = b;
     this.length = length;
     this.type   = type;
 }
Esempio n. 2
0
        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);
        }