我在 C# 中用两点创建一个 Rect。这些点实际上是地理界限。我遇到的问题是,当我创建矩形时,y 轴被翻转。
例如说我的数据是west="5.42194487004" south="46.407494" east="17.166386" north="55.056664"
我把它传给Rect geoBounds = new Rect(new Point(west, north),new Point(east, south));
创建的 Rectangle 具有以下属性
Bottom 55.056664 double
Height 7.781945 double
IsEmpty false bool
Left 5.864166 double
Right 15.038887000000003 double
Top 47.274719 double
Width 9.1747210000000017 double
X 5.864166 double
Y 47.274719 double
Y 轴翻转。我已经三重检查了输入呼叫的数据是否正确。怎么了?我也知道我没有提供太多代码,但觉得不需要更多代码。如果需要,将提供更多。