本文整理汇总了VB.NET中System.Windows.Media.Media3D.OrthographicCamera类的典型用法代码示例。如果您正苦于以下问题:VB.NET OrthographicCamera类的具体用法?VB.NET OrthographicCamera怎么用?VB.NET OrthographicCamera使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OrthographicCamera类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: ToggleCamera
'Toggle between camera projections.
Public Sub ToggleCamera(ByVal sender As Object, ByVal e As EventArgs)
If CBool(CameraCheck.IsChecked) = True Then
Dim myOCamera As New OrthographicCamera(New Point3D(0, 0, -3), New Vector3D(0, 0, 1), New Vector3D(0, 1, 0), 3)
myViewport.Camera = myOCamera
End If
If CBool(CameraCheck.IsChecked) <> True Then
Dim myPCamera As New PerspectiveCamera(New Point3D(0, 0, -3), New Vector3D(0, 0, 1), New Vector3D(0, 1, 0), 50)
myViewport.Camera = myPCamera
End If
End Sub