|
static JobHandle | FindLineSegmentIntersectionsCombinatorial (NativeList< LineSegment2D > segments, ref NativeList< float2 > intersections, JobHandle dependsOn=default) |
| Detects all intersections between line segments in a combinatorical way i. e. each segment is checked against all other segments (which is O(nē))
|
|
static JobHandle | FindLineSegmentIntersectionsCombinatorialParallel (NativeList< LineSegment2D > segments, ref NativeList< float2 > intersections, JobHandle dependsOn=default) |
| Detects all intersections between line segments in a combinatorical way i. e. each segment is checked against all other segments (which is O(nē)) The checks are done in parallel.
|
|
static JobHandle | FindLineSegmentIntersectionsSweep (NativeList< LineSegment2D > segments, ref NativeList< float2 > intersections, bool restartOnPrecisionErrors=true, float epsilon=10e-4f, JobHandle dependsOn=default) |
| Detects all intersections between line segments using an output-dependent sweepline algorithm. In theory this is faster than using the combinatorical version, but in practice this only happens after having several thousand line segments. And only if the floating-precision errors are tame (so as to have as few O(n)-restarts as possible). Use with caution.
|
|
static JobHandle | FindLSPlaneIntersectionsCombinatorialParallel (Plane intersectionPlane, NativeList< LineSegment3D > segments, ref NativeList< float3 > intersections, float epsilon=10e-6f, JobHandle dependsOn=default) |
| Detects all intersections between line segments and a plane in a combinatorical way i. e. each segment is checked against the plane (which is O(n)) The checks are done in parallel.
|
|