/// <summary>
        /// Create a new round rect geometry.
        /// </summary>
        /// <param name="resourceCreator"> The resource-creator. </param>
        /// <param name="transformer"> The source transformer. </param>
        /// <param name="matrix"> The matrix. </param>
        /// <param name="corner"> The corner. </param>
        /// <returns> The product geometry. </returns>
        public static CanvasGeometry CreateRoundRect(ICanvasResourceCreator resourceCreator, ITransformerLTRB transformer, Matrix3x2 matrix, float corner)
        {
            return(TransformerGeometry.CreateRoundRectCore
                   (
                       resourceCreator,

                       Vector2.Transform(transformer.LeftTop, matrix),
                       Vector2.Transform(transformer.RightTop, matrix),
                       Vector2.Transform(transformer.RightBottom, matrix),
                       Vector2.Transform(transformer.LeftBottom, matrix),

                       Vector2.Transform(transformer.CenterLeft, matrix),
                       Vector2.Transform(transformer.CenterTop, matrix),
                       Vector2.Transform(transformer.CenterRight, matrix),
                       Vector2.Transform(transformer.CenterBottom, matrix),

                       corner
                   ));
        }
        /// <summary>
        /// Create a new round rect geometry.
        /// </summary>
        /// <param name="resourceCreator"> The resource-creator. </param>
        /// <param name="transformer"> The source transformer. </param>
        /// <param name="corner"> The corner. </param>
        /// <returns> The product geometry. </returns>
        public static CanvasGeometry CreateRoundRect(ICanvasResourceCreator resourceCreator, ITransformerLTRB transformer, float corner)
        {
            return(TransformerGeometry.CreateRoundRectCore
                   (
                       resourceCreator,

                       transformer.LeftTop,
                       transformer.RightTop,
                       transformer.RightBottom,
                       transformer.LeftBottom,

                       transformer.CenterLeft,
                       transformer.CenterTop,
                       transformer.CenterRight,
                       transformer.CenterBottom,

                       corner
                   ));
        }