package oxbow
Module Oxbow_core.VectorSource
center r is the geometric center of r. Port of river-classic's Vector.positionOfBox.
direction v classifies v into one of four quadrants by dominant axis: |dy| > |dx| is up/down, else left/right. Is None for the zero vector.
Source
val nearest_in_direction :
from:t ->
dir:Direction.Spatial.t ->
('a -> t option) ->
'a list ->
'a optionnearest_in_direction ~from ~dir project xs is the element of xs closest to from in direction dir, or None if none qualifies. project x returns Some then candidate's center, or None to exclude x from the search.