/// <summary>
        /// Create a new diamond geometry.
        /// </summary>
        /// <param name="resourceCreator"> The resource-creator. </param>
        /// <param name="transformer"> The source transformer. </param>
        /// <param name="mid"> The mid value. </param>
        /// <returns> The product geometry. </returns>
        public static CanvasGeometry CreateDiamond(ICanvasResourceCreator resourceCreator, ITransformerLTRB transformer, Matrix3x2 matrix, float mid)
        {
            return(TransformerGeometry.CreateDiamondCore(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.CenterRight, matrix),

                                                         mid
                                                         ));
        }
        /// <summary>
        /// Create a new diamond geometry.
        /// </summary>
        /// <param name="resourceCreator"> The resource-creator. </param>
        /// <param name="mid"> The mid value. </param>
        /// <returns> The product geometry. </returns>
        public static CanvasGeometry CreateDiamond(ICanvasResourceCreator resourceCreator, ITransformerLTRB transformer, float mid)
        {
            return(TransformerGeometry.CreateDiamondCore(resourceCreator,
                                                         transformer.LeftTop,
                                                         transformer.RightTop,
                                                         transformer.RightBottom,
                                                         transformer.LeftBottom,

                                                         transformer.CenterLeft,
                                                         transformer.CenterRight,

                                                         mid
                                                         ));
        }