MathUtils

Overview

MathUtils 是一个类在Aspose.3D FOSS的.NET中.

MathUtils.CalcNormal calculates the normal vector of a polygon defined by an array of Vector3 points.

本类提供了在NET程序中与MathUtils对象工作的7种方法. 有的方法包括: CalcNormal, Clamp, FindIntersection, PointInsideTriangle, RayIntersect, ToDegree, ToRadian. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序.

Methods

SignatureDescription
CalcNormal(points: Vector3[])计算一个多角形的正常向量,由 Vector3 点数组定义.
FindIntersection(p0: Vector2, d0: Vector2, p1: Vector2, d1: Vector2, results: Vector2[])计算两个直线 (p0+d0和p1+ d1) 的交点,并将结果存储在 Vector2 数组中.
PointInsideTriangle(p: Vector2, p0: Vector2, p1: Vector2, p2: Vector2)如果点p位于由 p0,p1和p2组成的三角形内部,则返回真.
RayIntersect(origin: Vector2, dir: Vector2, a: Vector2, b: Vector2)找到一个射线 (起源,dir) 和段 a-b 的交点.
Clamp(val: double, min: double, max: double)限制以min和max定义的包括范围内的双重值.
ToDegree(radian: Vector3)将三个双半径值 (x,y,z) 转换为3度的向量
ToRadian(degree: Vector3)将三个双度值 (x,y,z) 转换为三射线向量
ToDegree(radian: float)
ToDegree(radian: double)
ToDegree(x: double, y: double, z: double)
ToRadian(degree: float)
ToRadian(degree: double)
ToRadian(x: double, y: double, z: double)

See Also

 中文