MathUtils

Overview

MathUtils is a class in Aspose.3D FOSS for .NET.

MathUtils.CalcNormal calculates a normal vector from an array of Vector3 points.

Methods

SignatureDescription
CalcNormal(points: Vector3[])Calculates a normal vector from an array of Vector3 points
FindIntersection(p0: Vector2, d0: Vector2, p1: Vector2, d1: Vector2, results: Vector2[])Computes the intersection of two 2D lines given point and direction vectors, outputting to results
PointInsideTriangle(p: Vector2, p0: Vector2, p1: Vector2, p2: Vector2)Determines whether a 2D point lies inside the triangle formed by three vertices
RayIntersect(origin: Vector2, dir: Vector2, a: Vector2, b: Vector2)Checks if a 2D ray intersects the line segment defined by points a and b
Clamp(val: double, min: double, max: double)Restricts a double value to the inclusive range between 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)

See Also