vivid v0.2.1 Vivid.Bounds.Of protocol

This protocol is used to calculate the bounds of a given shape.

Implement this protocol if you are defining any new shape types.

Summary

Functions

Return the bounds of a Shape as a two element tuple of bottom-left and top-right points

Types

t()
t() :: term

Functions

bounds(shape)

Return the bounds of a Shape as a two element tuple of bottom-left and top-right points.