Exemple #1
0
        public Quadrilateral <Vector2> GetCoordinates(Point32 sheetSize)
        {
            var width  = (float)sheetSize.X;
            var height = (float)sheetSize.Y;

            return(Quadrilateral.Create(
                       new Vector2(x0 / width, y0 / height),
                       new Vector2(x1 / width, y1 / height)));
        }