良好的库3D数学在C#中? [英] Good library for 3D math in C#?

查看:502
本文介绍了良好的库3D数学在C#中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写这将被用来处理一堆3D数据,做这样的事情旋转物体,平移,缩放和所有的好东西的工具。有谁知道已经做了一些这普通3D的东西?

I'm writing a tool that is going to be used to process a bunch of 3D data, doing things like rotating objects, translating, scaling and all that good stuff. Does anyone know of a good library that already does some of this common 3D stuff?

我不感兴趣的那一刻可视化的数据,而且我主要是在执行操作的兴趣。

I'm not interested in visualizing the data at the moment, and am primarily interested in performing the operations.

事情我需要在这一点上:

Things I know I will need at this point:

  • 在2D / 3D / 4D矢量
    • (加,减,点积,叉积,等等...)
    • 2D/3D/4D vectors
      • (adding, subtracting, dot product, cross product, etc...)

      我能找到 Sharp3D 库,但现在看来似乎会做我想做的,但还没有在很长一段时间被更新。有没有人使用过?任何其他(更好)的建议?

      I was able to locate the Sharp3D library, but it seems like it might do what I want but hasn't been updated in a long time. Has anyone used this before? Any other (better) suggestions?

      推荐答案

      Microsoft.Xna.Framework (船本XNA)可以做的工作。

      Microsoft.Xna.Framework (ship this XNA) could do the work.

      XNA Framework提供数学库具有多个基本几何类型,可以被用来操纵在二维或三维空间中的对象。在这个库再present原始对象所需的数据重新present几何对象或该对象上的操作。每个几何类型都有一个编号,所支持的类型的数学运算的

      The XNA Framework Math library has multiple basic geometric types that can be used to manipulate objects in 2D or 3D space. The primitive objects in this library represent the data required to represent a geometric object or an operation on that object. Each geometric type has a number of mathematical operations that are supported for the type.

      向量

      在XNA Framework提供Vector2,Vector3类型和的Vector4类重presenting和操纵载体。一种载体,通常用于重新present的方向和幅度。然而,在XNA框架它也可能被用于存储一个坐标或具有相同的存储要求某些其它数据类型。

      The XNA Framework provides the Vector2, Vector3 and Vector4 classes for representing and manipulating vectors. A vector is typically used to represent a direction and magnitude. However, in the XNA framework it might also be used to store a coordinate or some other data type with the same storage requirements.

      每个向量类有执行标准的矢量操作,例如方法:

      Each vector class has methods for performing standard vector operations such as:

          
      • 点积
      •   
      • 跨产品
      •   
      • 正常化
      •   
      • 转换
      •   
      • 线性,立方,卡特莫尔-ROM,或埃尔米特样条插值。
      •   
      • Dot product
      • Cross product
      • Normalization
      • Transformation
      • Linear, Cubic, Catmull-Rom, or Hermite spline interpolation.

      矩阵

      在XNA Framework提供了几何变换的Matrix类。 Matrix类使用一个行优先顺序处理矩阵,这意味着在所述塔之前描述的二维矩阵的元素时指定的行。 Matrix类提供了方法,用于执行标准矩阵​​运算例如计算矩阵的确定的或逆,除了辅助方法,用于创建规模,翻译和旋转矩阵

      The XNA Framework provides the Matrix class for transformation of geometry. The Matrix class uses a row major order to address matrices, which means that the row is specified before the column when describing an element of a two-dimensional matrix. The Matrix class provides methods for performing standard matrix operations such as calculating the determinate or inverse of a matrix, in addition to helper methods for creating scale, translation, and rotation matrices.

      四元

      在XNA Framework提供的四元结构重新present并计算有关各地指定的角度矢量的高效转动。

      The XNA Framework provides the Quaternion structure to represent and calculate the efficient rotation about a vector around a specified angle.

      这篇关于良好的库3D数学在C#中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆