Skip to content

spatial-monorepo


spatial-monorepo / wayfinding/src / computeVerticalWeight

Function: computeVerticalWeight()

computeVerticalWeight(category, floorHeightM): number

Defined in: packages/wayfinding/src/graph.ts:614

Time cost (seconds) for a cross-floor vertical transition, by category. Exported so the grid engine's multi-floor portal-branching router (issue #482) can reuse the exact same weighting semantics for its own vertical-transition duration contribution, instead of re-deriving it.

Parameters

category

VerticalCategory

floorHeightM

number

Returns

number

Released under commercial licensing.