Class CorridorProjectionExtensions
Inheritance
System.Object
CorridorProjectionExtensions
Namespace: AnyPath.Graphs
Assembly: Assembly-CSharp.dll
Syntax
public static class CorridorProjectionExtensions
Methods
| Improve this Doc View SourceIntersect<T, U>(U, float2, float2, T)
Takes the 2D line and calculates the intersection with this portal. Returns the original point in 3D space.
Declaration
public static float3 Intersect<T, U>(this U proj, float2 v, float2 w, T segment)
where T : ICorridorSegment where U : ICorridorSegmentProjection
Parameters
Type | Name | Description |
---|---|---|
U | proj | |
Unity.Mathematics.float2 | v | |
Unity.Mathematics.float2 | w | |
T | segment |
Returns
Type | Description |
---|---|
Unity.Mathematics.float3 |
Type Parameters
Name | Description |
---|---|
T | |
U |