 
 Utils.pointMin = ->
 	points = Utils.arrayFromArguments arguments
-	point = 
+	point =
 		x: _.min points.map (size) -> size.x
 		y: _.min points.map (size) -> size.y
 
 Utils.pointMax = ->
 	points = Utils.arrayFromArguments arguments
-	point = 
+	point =
 		x: _.max points.map (size) -> size.x
 		y: _.max points.map (size) -> size.y
 


# Kind of similar as above but with a better syntax and a limiting option
Utils.modulate = (value, rangeA, rangeB, limit=false) ->
	
	[fromLow, fromHigh] = rangeA
	[toLow, toHigh] = rangeB
	
	result = toLow + (((value - fromLow) / (fromHigh - fromLow)) * (toHigh - toLow))

	if limit is true

		return match[1] if match
		return null

	className = extract(item.toString())
	return className if className
	className = extract(item.constructor?.toString())
	return className.replace("Constructor", "") if className
	return item

Utils.inspect = (item, max=5, l=0) ->

	return "null" if item is null
	return "undefined" if item is undefined

	if _.isFunction(item.toInspect)
		return item.toInspect()
	if _.isString(item)
