MathUtils
Vue de l’ensemble
‘MathUtils’ est une classe dans Aspose.3D FOSS pour .NET.
MathUtils.CalcNormal calculera le vecteur normal d’un polygone défini par une série de points Vector3.
Cette classe fournit 7 méthodes pour travailler avec les objets MathUtils dans des programmes .NET. Les méthodologies disponibles comprennent: ‘CalcNormal’, ‘clamp’, FindIntersection', ‘PointInsideTriangle’, 'RayInterSect', ’ToDegree, ‘ToRadian’. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.3D FOSS pour le package .net.
méthodes
| Signature | Description |
|---|---|
CalcNormal(points: Vector3[]) | Calculates the normal vector of a polygon defined by an array of Vector3 points |
FindIntersection(p0: Vector2, d0: Vector2, p1: Vector2, d1: Vector2, results: Vector2[]) | Computes the intersection of two lines (p0+d0 and p1+d1) and stores results in a Vector2 array |
PointInsideTriangle(p: Vector2, p0: Vector2, p1: Vector2, p2: Vector2) | Returns true if point p lies inside the triangle formed by p0, p1 and p2 |
RayIntersect(origin: Vector2, dir: Vector2, a: Vector2, b: Vector2) | Finds the intersection point between a ray (origin, dir) and the segment a‑b |
Clamp(val: double, min: double, max: double) | Limits a double value to the inclusive range defined by min and max |
ToDegree(radian: Vector3) | Converts three double radian values (x, y, z) to a Vector3 of degrees |
ToRadian(degree: Vector3) | Converts three double degree values (x, y, z) to a Vector3 of radians |
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) |
Voir aussi
- Aspose.3D - référence API d’entreprise