Across
Namespace: Digi21.DigiNG.Entities.Relations
Assembly: Digi21.DigiNG
Indicates whether the two lines cross at a common vertex.

public static bool Across(ReadOnlyLine a, ReadOnlyLine b)
| Parameter | Description |
|---|---|
a |
First line, of type ReadOnlyLine. |
b |
Second line. |
Return value
true if an intermediate vertex of a coincides with an intermediate vertex of b where the lines cross. At that vertex, the lines cross if both conditions are met:
- The vertices before and after the vertex of
blie on opposite sides of the edge ofaleaving the common vertex. - The vertices before and after the vertex of
alie on opposite sides of the edge ofbleaving the common vertex.
If an intermediate vertex of a coincides with several intermediate vertices of b, only the first is analyzed. A crossing between edges without a common vertex is not detected, nor is a crossing at either line's endpoint.
Exceptions
| Exception | When |
|---|---|
ArgumentNullException |
a or b is null. |
Example
See the LineLine example.