类 MathUtils
MathUtils class
一组有用的数学实用程序。
public class MathUtils
方法
| 名称 | 描述 |
|---|---|
| static CalcNormal(Vector3[]) | |
| static Clamp(double, double, double) | 将值限制在范围 [min, max] 内 |
| static FindIntersection(Vector2, Vector2, Vector2, Vector2, Vector2[]) | |
| static PointInsideTriangle(Vector2, Vector2, Vector2, Vector2) | 检查点 p 是否在三角形 (p0, p1, p2) 内 |
| static RayIntersect(Vector2, Vector2, Vector2, Vector2) | 检查射线 (origin, dir) 是否与线段 (start, end) 相交 |
| static ToDegree(double) | 将数字从弧度转换为度 |
| static ToDegree(float) | 将数字从弧度转换为度 |
| static ToDegree(Vector3) | 将 Vector3 从弧度转换为度。 |
| static ToDegree(double, double, double) | 将数字从弧度转换为度 |
| static ToRadian(double) | 将数字从度转换为弧度 |
| static ToRadian(float) | 将数字从度转换为弧度 |
| static ToRadian(Vector3) | 将 Vector3 从度转换为弧度 |
| static ToRadian(double, double, double) | 将向量从度转换为弧度 |
另请参见
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D