Struct FunnelState
Public
Public Methods
CalculateNextCornerIndices
(maxCorners, result, startPoint, endPoint, lastCorner)
Calculate the shortest path through the funnel.
ConvertCornerIndicesToPath
(indices, numCorners, splitAtEveryPortal, startPoint, endPoint, lastCorner, result)
ConvertCornerIndicesToPathProjected
(..., indices, splitAtEveryPortal, startPoint, endPoint, lastCorner, ..., result, up)
IsReasonableToPopEnd
(startPoint, endPoint)
Like IsReasonableToPopStart but for the end of the funnel.
IsReasonableToPopStart
(startPoint, endPoint)
True if it is reasonable that the given start point has passed the first portal in the funnel.
Public Static Methods
CalculatePortalIntersections
(startIndex, endIndex, leftPortals, rightPortals, unwrappedPortals, from, to, result)
DifferentSidesOfLine
(start, end, a, b)
True if a and b lie on different sides of the infinite line that passes through start and end.
Public Variables
leftFunnel
Left side of the funnel.
Public
projectionAxis
If set to anything other than (0,0,0), then all portals will be projected on a plane with this normal.
Public
rightFunnel
Right side of the funnel.
Public
unwrappedPortals
Unwrapped version of the funnel portals in 2D space.
Public