Function layout_2013::display_list::gradient::distance_to_corner
source ยท fn distance_to_corner<F>(size: &Size2D<Au>, center: &Point2D<Au>, cmp: F) -> Au
Expand description
Returns the the distance to the nearest or farthest corner depending on the comperator.