/// <summary> /// Create a new triangle geometry. /// </summary> /// <param name="resourceCreator"> The resource-creator. </param> /// <param name="leftTop"> The left-top point. </param> /// <param name="rightTop"> The right-top point. </param> /// <param name="rightBottom"> The right-bottom point. </param> /// <param name="leftBottom"> The left-bottom point. </param> /// <returns> The product geometry. </returns> public static CanvasGeometry CreateTriangle(ICanvasResourceCreator resourceCreator, Vector2 leftTop, Vector2 rightTop, Vector2 rightBottom, Vector2 leftBottom, float center) => TransformerGeometry.CreateTriangleCore(resourceCreator, leftTop, rightTop, rightBottom, leftBottom, center);
/// <summary> /// Create a new triangle geometry. /// </summary> /// <param name="resourceCreator"> The resource-creator. </param> /// <param name="leftTop"> The left-top point. </param> /// <param name="rightTop"> The right-top point. </param> /// <param name="rightBottom"> The right-bottom point. </param> /// <param name="leftBottom"> The left-bottom point. </param> /// <param name="matrix"> The matrix. </param> /// <param name="matrix"> The matrix. </param> /// <returns> The product geometry. </returns> public static CanvasGeometry CreateTriangle(ICanvasResourceCreator resourceCreator, Vector2 leftTop, Vector2 rightTop, Vector2 rightBottom, Vector2 leftBottom, Matrix3x2 matrix, float center) => TransformerGeometry.CreateTriangleCore(resourceCreator, Vector2.Transform(leftTop, matrix), Vector2.Transform(rightTop, matrix), Vector2.Transform(rightBottom, matrix), Vector2.Transform(leftBottom, matrix), center);
/// <summary> /// Create a new triangle geometry. /// </summary> /// <param name="resourceCreator"> The resource-creator. </param> /// <param name="transformerLTRB"> The ITransformer-LTRB. </param> /// <returns> The product geometry. </returns> public static CanvasGeometry CreateTriangle(ICanvasResourceCreator resourceCreator, ITransformerLTRB transformerLTRB, float center) => TransformerGeometry.CreateTriangleCore(resourceCreator, transformerLTRB.LeftTop, transformerLTRB.RightTop, transformerLTRB.RightBottom, transformerLTRB.LeftBottom, center);