MapObjects2自带例子的问题
生活随笔
收集整理的這篇文章主要介紹了
MapObjects2自带例子的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
MapObjects2\Samples\VBNet\Geometry例子里的空間幾何圖形的集合運算有這樣一個方法:
Private Function MakeExtentFromXYScale(falseX As Double, falseY As Double, xyScale As Double) As Rectangle' max integer for positive integer coord spaceDim c_maxGeomInt As Long = 2147483645Dim ext As New Rectangle' Shift origin left and down to match the precisionext.Left = Int(falseX * xyScale) / xyScaleext.Bottom = Int(falseY * xyScale) / xyScale' Set width and height of the rectangle to be a square which is sized' fill positive integer space at the given scaleext.Right = ext.Left + c_maxGeomInt / xyScaleext.Top = ext.Bottom + ext.Right - ext.LeftMakeExtentFromXYScale = ext End Function?轉載于:https://www.cnblogs.com/Doho/archive/2007/04/01/695592.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的MapObjects2自带例子的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 利用matlab程序分别设计一正弦型信号
- 下一篇: 推荐《求医不如求己》,实用