private Vector ScaleVectorFromLocation(System.Drawing.Rectangle workingArea_in, System.Drawing.Point AbsoluteLocation_in) { Matrix scale = new Matrix(); scale.SetIdentity(); scale.Scale(1.0 / workingArea_in.Size.Width, 1.0 / workingArea_in.Size.Height); return(scale.Transform(AbsoluteLocation_in.ToVector() - workingArea_in.Location.ToVector())); }