Skip to content

Simba.Data

Simba.Data.Circuit

Circuit.TryShortenConnectorAtLooseEnd(PointI, PointI) Method

Shortens a connector when one of its loose ends is released on the connector path that it covers. This is the circuit-editor gesture used to remove the portion of a wire that would otherwise overlap an existing segment.

1
bool TryShortenConnectorAtLooseEnd(start, end)

Parameters

start Simba.Data.PointI

The loose end from which the connection gesture started.

end Simba.Data.PointI

The point on the same connector path where the gesture ended.

Returns

System.Boolean
true when a connector was shortened; otherwise, false.