Click or drag to resize
AB4D logo

MathUtils Class

MathUtils contains some math utility methods.
Inheritance Hierarchy
SystemObject
  Ab3d.UtilitiesMathUtils

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static class MathUtils

The MathUtils type exposes the following members.

Methods
 NameDescription
Public methodStatic memberGetAngleDiff Returned the smallest difference between two angles in degrees (result is in range between 0 and 180).
Public methodStatic memberGetPerpendicularVectors Calculate two vectors that are perpendicular to the inputVector. Both calculated vectors are normalized.
Public methodStatic memberGetRotationMatrix Returns a Matrix3D that rotates around all three axes
Public methodStatic memberGetSignedAngleDiff Returned the smallest difference between two angles in degrees (difference is positive if angle1 is bigger then angle2)
Public methodStatic memberIsOne Returns true if the value is close to one (taking double precision errors into account).
Public methodStatic memberIsSame(Double, Double) Returns true if value1 is same as value2 (taking double precision errors into account).
Public methodStatic memberIsSame(Point, Point) Returns true if the specified Point are same (taking double precision errors into account).
Public methodStatic memberIsSame(Point3D, Point3D) Returns true if the specified Point3D are same (taking double precision errors into account).
Public methodStatic memberIsSame(Vector3D, Vector3D) Returns true if the specified Vector3D are same (taking double precision errors into account).
Public methodStatic memberIsZero Returns true if the value is close to zero (taking double precision errors into account).
Public methodStatic memberIsZeroOrBigger Returns true if the value is close to zero or bigger (taking double precision errors into account).
Public methodStatic memberIsZeroOrNaN Returns true if the value is NaN or close to zero (taking double precision errors into account).
Public methodStatic memberIsZeroOrSmaller Returns true if the value is close to zero or smaller (taking double precision errors into account).
Public methodStatic memberRayPlaneIntersection RayPlaneIntersection calculates a position where a ray interects a plane. Returns false if there is no intersection.
Public methodStatic memberRotate(Point3D, Double, Double) Rotates the Point3D for heading and attitude in degrees
Public methodStatic memberRotate(Vector3D, Double, Double) Rotates the Vector3D for heading and attitude in degrees
Top
See Also