当前位置: 首页>>代码示例>>VB.NET>>正文


VB.NET Point3D.Subtract方法代码示例

本文整理汇总了VB.NET中System.Windows.Media.Media3D.Point3D.Subtract方法的典型用法代码示例。如果您正苦于以下问题:VB.NET Point3D.Subtract方法的具体用法?VB.NET Point3D.Subtract怎么用?VB.NET Point3D.Subtract使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。


在下文中一共展示了Point3D.Subtract方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。

示例1: to

' Subtracts a Point3D from a Point3D using the static Subtract method.  
' Returns a Vector3D.

Dim point1 As New Point3D(10, 5, 1)
Dim point2 As New Point3D(15, 40, 60)
Dim vectorResult As New Vector3D()

vectorResult = Point3D.Subtract(point1, point2)
' vectorResult is equal to (-5, -35, -59)

' Displaying Results
syntaxString = "vectorResult = Point3D.Subtract(point1, point2)"
resultType = "Vector3D"
operationString = "Subtracting a Point3D from a Point3D"
ShowResults(vectorResult.ToString(), syntaxString, resultType, operationString)
开发者ID:VB.NET开发者,项目名称:System.Windows.Media.Media3D,代码行数:15,代码来源:Point3D.Subtract

示例2: to

' Subtracts a Vector3D from a Point3D using the static Subtract method. 
' Returns a Point3D.

Dim point1 As New Point3D(10, 5, 1)
Dim vector1 As New Vector3D(20, 30, 40)
Dim pointResult As New Point3D()

pointResult = Point3D.Subtract(point1, vector1)
' pointResult is equal to (-10, -25, -39)

' Displaying Results
syntaxString = "pointResult = Point3D.Subtract(point1, vector1)"
resultType = "Point3D"
operationString = "Subtracting a Vector3D from a Point3D"
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString)
开发者ID:VB.NET开发者,项目名称:System.Windows.Media.Media3D,代码行数:15,代码来源:Point3D.Subtract


注:本文中的System.Windows.Media.Media3D.Point3D.Subtract方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。