小编Mik*_*ike的帖子

如何在XAML中表示系统常量(如double.MaxValue)

什么是xaml等价物MyProperty = double.MaxValue?我担心我需要使用类似MyProperty="{x:Static sys:Int32.MaxValue}"但不确定的东西,并且找不到相应的双倍.谢谢.

xaml constants

21
推荐指数
2
解决办法
9710
查看次数

将euler转换为矩阵,将矩阵转换为euler

我正在尝试使用.NET/C#将使用欧拉角度描述的3D旋转转换为矩阵然后返回.我的约定是:

  • 左撇子系统(x右,y上,z前进)
  • 旋转顺序:绕y前进,绕x旋转,绕z倾斜
  • 使用左手规则(拇指指向+无穷大)旋转是正的

我的试用期是:

Euler到矩阵(为了简化,我删除了x,y,z平移部分)

Matrix3D matrix = new Matrix3D() {
    M11 =   cosH * cosB - sinH * sinP * sinB,
    M12 = - sinB * cosP,
    M13 =   sinH * cosB + cosH * sinP * sinB,
    M21 =   cosH * sinB + sinH * sinP * cosB,
    M22 =   cosB * cosP,
    M23 =   sinB * sinH - cosH * sinP * cosB,
    M31 = - sinH * cosP,
    M32 = - sinP,
    M33 = …
Run Code Online (Sandbox Code Playgroud)

c# math 3d matrix euler-angles

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

3d ×1

c# ×1

constants ×1

euler-angles ×1

math ×1

matrix ×1

xaml ×1