Contents

Simantics/Diagram/ElementTransforms

Rotation

rotateToNeighborSlope :: Resource -> <WriteGraph,Proc> Double
rotateToNeighborSlope element

Rotates provided element so that its rotation is the same as the slope of a line drawn between the two other elements the element is connected to.

Note that this requires that the element is connected to exactly two other elements.