vivid v0.4.2 Vivid.Bounds.Of protocol View Source
This protocol is used to calculate the bounds of a given shape.
Implement this protocol if you are defining any new shape types.
Link to this section Summary
Functions
Return the bounds of a Shape as a two element tuple of bottom-left and top-right points
Link to this section Types
Link to this section Functions
Link to this function
bounds(shape)
View Source
bounds(Vivid.Shape.t) :: {Vivid.Point.t, Vivid.Point.t}
Return the bounds of a Shape as a two element tuple of bottom-left and top-right points.