c# - C#中旋转的RectangleGeometry的左上角点

标签 c# wpf rotation

我得到了旋转的 RectangleGeometry,我需要找到左上角和右下角的点。最快的方法是什么?

请注意,我不想要 AABB 或其他东西的这些点 - 我只需要矩形的点。

提前感谢您提供的线索!

干杯

最佳答案

Rect 属性保存了 RectangleGeometry 的点。我不清楚 Rect 是否反射(reflect)任何旋转,或者它是否是未旋转的点。如果它是未旋转的点,那么您必须从 Rect 中获取点并使用 RectangleGeometryTransform 属性对其进行转换.

关于c# - C#中旋转的RectangleGeometry的左上角点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4217819/

相关文章:

c# - 如何从后面的代码访问xaml中声明的全局变量

C#:使用数据绑定(bind)文本框在 List<Customer> 中导航

opencv - findHomography()/3x3 矩阵 - 如何从中获取旋转部分?

c# - 如何在 Azure 搜索中允许自定义分析器使用通配符

c# - WPF:当 IDataErrorInfo 时在自定义 DataGrid 单元格上显示工具提示消息

javascript - 平移-旋转 : SVG not rotating around center even though translated:

google-maps - Google map API、自定义倾斜度、旋转度等

c# - 泛型如何解决不兼容的泛型类型约束

c# - 无法找到 Net Core NHibernate System.Data.SQLite

c# - HtmlAgilityPack SelectNodes 表达式忽略具有特定属性的元素