0,
7,
6,
5,
8,
2
}
Dim dc2 As New DoubleCollection(dc1.Cast(Of Double)().OrderBy(Function(d) d).ToArray())
For Each d As Double In dc2
MsgBox(d)
Next
同样Point3dCollection的排序:
Dim PTC as As New Point3dCollection
……
PTC = New Point3dCollection(PTC.Cast(Of Point3d)().OrderBy(Function(P As Point3d) P.X).ToArray()) '按X坐标排序
[本日志由 tiancao1001 于 2024-01-03 04:40 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |