11 lines
271 B
Python
11 lines
271 B
Python
|
|
from Constraint import Constraint
|
|
|
|
class DistanceConstraint(Constraint):
|
|
def __init__(self, shape1, attr1, shape2, attr2, dist):
|
|
self.shape1 = shape1
|
|
self.shape2 = shape2
|
|
self.attr1 = attr1
|
|
self.attr2 = attr2
|
|
self.dist = dist
|