function flattenPointsOn(points, normal, result) {
	let min = Number.MAX_VALUE;
	let max = -Number.MAX_VALUE;
	const len = points.length;
	for (let i = 0; i < len; i++) {
		// The magnitude of the projection of the point onto the normal
		const dot = points[i].dot(normal);
		if (dot < min) {
			min = dot;
		}
		if (dot > max) {
			max = dot;
		}
	}
	result[0] = min;
	result[1] = max;
}
Flattens the specified array of points onto a unit vector axis,
resulting in a one dimensional range of the minimum and
maximum value on that axis.
@ignore
@param {Array.<Vector2d>} points - The points to flatten.
@param {Vector2d} normal - The unit vector axis to flatten on.
@param {Array.<number>} result - An array.  After calling this function,
  result[0] will be the minimum value,
  result[1] will be the maximum value.