constrain_node

constrain_node(constraint: Node, node: Node) → None

Constrain the node to the constraint.

Returns true if the constraint has been setted.

Parameters:
  • constraint (Node) – The constraint layer
  • node (Node) – The node to be constrain
Return type:

None