本文整理汇总了C#中RectangleF.GetLeft方法的典型用法代码示例。如果您正苦于以下问题:C# RectangleF.GetLeft方法的具体用法?C# RectangleF.GetLeft怎么用?C# RectangleF.GetLeft使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RectangleF
的用法示例。
在下文中一共展示了RectangleF.GetLeft方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitVetexes
private void InitVetexes(out Vertex v1, out Vertex v2, out Vertex v3, out Vertex v4,
RectangleF rect , Color color,
Vector2 topLeftUV, Vector2 topRightUV, Vector2 bottomRightUV, Vector2 bottomLeftUV)
{
var top = Math.Max(rect.GetBottom(), rect.GetTop());
var bottom = Math.Min(rect.GetBottom(), rect.GetTop());
var left = rect.GetLeft();
var right = rect.GetRight();
v1.Position = new Vector3(left, bottom, zCounter.Value);
v2.Position = new Vector3(right, bottom, zCounter.Value);
v3.Position = new Vector3(right, top, zCounter.Value);
v4.Position = new Vector3(left, top, zCounter.Value);
zCounter.Increment();
v1.shift = left - ((int)left);
v2.shift = right - ((int)right);
v3.shift = right - ((int)right);
v4.shift = left - ((int)left);
v1.Color = color;
v2.Color = color;
v3.Color = color;
v4.Color = color;
v1.UV = topLeftUV;
v2.UV = topRightUV;
v3.UV = bottomRightUV;
v4.UV = bottomLeftUV;
}