* Returns the middle value of an edge. Only returns 1 value rather than xy coordinates as * the itself already contains the other coordinate. * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x.
(rect, edge)
| 31769 | * the itself already contains the other coordinate. |
| 31770 | * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x. |
| 31771 | */ function _getCenterValue(rect, edge) { |
| 31772 | var edges = _getFlankingEdges(edge); |
| 31773 | return (_getEdgeValue(rect, edges.positiveEdge) + _getEdgeValue(rect, edges.negativeEdge)) / 2; |
| 31774 | } |
| 31775 | /** |
| 31776 | * Flips the value depending on the edge. |
| 31777 | * If the edge is a "positive" edge, Top or Left, then the value should stay as it is. |
no test coverage detected