View Source Terrestrial.Attributes (terrestrial v0.1.0)
This module defines ways for editing elements.
How it works
All the functions return an anonymous function that takes and returns a config map. This function is later applied by the library.
Summary
Functions
Add arbitrary attributes to an element using a Keyword list.
Like lowest/2 but for upper bound.
Change the lower bound of an axis.
Given an axis, find a value in the middle
Given an axis, find a value at the given percentage
Given an axis, find the value closer to zero.
Functions
Add arbitrary attributes to an element using a Keyword list.
Like lowest/2 but for upper bound.
Change the lower bound of an axis.
@spec middle(Terrestrial.Coordinates.axis()) :: float()
Given an axis, find a value in the middle
@spec percent(Terrestrial.Coordinates.axis(), float()) :: float()
Given an axis, find a value at the given percentage
@spec zero(Terrestrial.Coordinates.axis()) :: float()
Given an axis, find the value closer to zero.