Current section

Files

Jump to
vivid lib vivid bounds of circle.ex
Raw

lib/vivid/bounds/of/circle.ex

defimpl Vivid.Bounds.Of, for: Vivid.Circle do
def bounds(circle) do
circle
|> Vivid.Circle.to_polygon
|> Vivid.Bounds.Of.bounds
end
end