 #endif
 import Foundation
 
-private func normalizePoint(source src: CGPoint, in rect: CGRect) -> CGPoint {
-	let origin = rect.origin
-	let size   = rect.size
-	let x = origin.x + (size.width  * src.x)
-	let y = origin.y + (size.height * src.y)
+private func normalizePoint(source src: CGPoint, in area: CGSize) -> CGPoint {
+	let x = area.width  * src.x
+	let y = area.height * src.y
 	return CGPoint(x: x, y: y)
 }
 

		super.init(lineWidth: width, doFill: fill, strokeColor: scolor, fillColor: fcolor)
	}

	public func normalize(inRect rect: CGRect) -> CGRect? {
		let norigin = normalizePoint(source: originPoint, in: rect)
		let nend    = normalizePoint(source: endPoint, in: rect)
		let x = min(norigin.x, nend.x)
		let y = min(norigin.y, nend.y)
		let width  = abs(nend.x - norigin.x)

		mPoints.append(pt)
	}

	public func normalize(in area: CGSize) -> Array<CGPoint> {
		var result: Array<CGPoint> = []
		for pt in mPoints {
			let p = normalizePoint(source: pt, in: area)
			result.append(p)
		}
		return result
