Quadtreex.BoundingBox (quadtreex v0.2.0) View Source
Describes a box of 2 dimensional space
Link to this section Summary
Link to this section Types
Specs
Specs
quadrant() :: :ne | :se | :sw | :nw
Specs
t() :: %Quadtreex.BoundingBox{ center: {float(), float()}, height: number(), l: coordinate(), r: coordinate(), width: number() }
Link to this section Functions
Specs
contains?(t(), coordinate()) :: boolean()
Specs
find_quadrant(t(), coordinate()) :: {:ok, quadrant()} | {:error, :out_of_bounds}
Specs
Specs
new(coordinate(), coordinate()) :: t()