This interface provides operations on objects of type Path.T and of type RealPath.T. A Path.T is the path represented on an integer grid, a RealPath.T is a path represented by coordinates which are reals.
INTERFACEPathExtra ; IMPORT Path, RealPath, Rect, RealTransform; PROCEDURE RealPathToPath (READONLY realPath: RealPath.T; READONLY matrix := RealTransform.Identity): Path.T;
ConvertrealPath
to the equivalentPath.T
on an integer grid transformed bymatrix
.
PROCEDURE PathBounds (READONLY path: Path.T): Rect.T;
Return the integer bounds of path
.
END PathExtra.