當前位置: 首頁>>代碼示例>>VB.NET>>正文


VB.NET MatrixTransform3D類代碼示例

本文整理匯總了VB.NET中System.Windows.Media.Media3D.MatrixTransform3D的典型用法代碼示例。如果您正苦於以下問題:VB.NET MatrixTransform3D類的具體用法?VB.NET MatrixTransform3D怎麽用?VB.NET MatrixTransform3D使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了MatrixTransform3D類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。

示例1:

Try
        Dim setM11 As Double = Convert.ToDouble(M11Text.Text)
        Dim setM21 As Double = Convert.ToDouble(M21Text.Text)
        Dim setM31 As Double = Convert.ToDouble(M31Text.Text)
        Dim setOffsetX As Double = Convert.ToDouble(OffsetXText.Text)

        Dim setM12 As Double = Convert.ToDouble(M12Text.Text)
        Dim setM22 As Double = Convert.ToDouble(M22Text.Text)
        Dim setM32 As Double = Convert.ToDouble(M32Text.Text)
        Dim setOffsetY As Double = Convert.ToDouble(OffsetYText.Text)

        Dim setM13 As Double = Convert.ToDouble(M13Text.Text)
        Dim setM23 As Double = Convert.ToDouble(M23Text.Text)
        Dim setM33 As Double = Convert.ToDouble(M33Text.Text)
        Dim setOffsetZ As Double = Convert.ToDouble(OffsetZText.Text)

        Dim setM14 As Double = Convert.ToDouble(M14Text.Text)
        Dim setM24 As Double = Convert.ToDouble(M24Text.Text)
        Dim setM34 As Double = Convert.ToDouble(M34Text.Text)
        Dim setM44 As Double = Convert.ToDouble(M44Text.Text)

        end_Matrix3D = New Matrix3D(setM11, setM12, setM13, setM14, setM21, setM22, setM23, setM24, setM31, setM32, setM33, setM34, setOffsetX, setOffsetY, setOffsetZ, setM44)

        myMatrixTransform3D.Matrix = end_Matrix3D
Catch
    MessageBox.Show("Set Matrix3D values or rotation values before transforming")
End Try
開發者ID:VB.NET開發者,項目名稱:System.Windows.Media.Media3D,代碼行數:27,代碼來源:MatrixTransform3D


注:本文中的System.Windows.Media.Media3D.MatrixTransform3D類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。