﻿MathUtils Methods   # MathUtils Methods

The MathUtils type exposes the following members. Methods
NameDescription  GetAngleDiff
Returned the smallest difference between two angles in degrees (result is in range between 0 and 180).  GetPerpendicularVectors
Calculate two vectors that are perpendicular to the inputVector. Both calculated vectors are normalized.  GetRotationMatrix
Returns a Matrix3D that rotates around all three axes  GetSignedAngleDiff
Returned the smallest difference between two angles in degrees (difference is positive if angle1 is bigger then angle2)  IsOne
Returns true if the value is close to one (taking double precision errors into account).  IsSame(Double, Double)
Returns true if value1 is same as value2 (taking double precision errors into account).  IsSame(Point3D, Point3D)
Returns true if the specified Point3D are same (taking double precision errors into account).  IsSame(Vector3D, Vector3D)
Returns true if the specified Vector3D are same (taking double precision errors into account).  IsSame(Point, Point)
Returns true if the specified Point are same (taking double precision errors into account).  IsZero
Returns true if the value is close to zero (taking double precision errors into account).  IsZeroOrBigger
Returns true if the value is close to zero or bigger (taking double precision errors into account).  IsZeroOrNaN
Returns true if the value is NaN or close to zero (taking double precision errors into account).  IsZeroOrSmaller
Returns true if the value is close to zero or smaller (taking double precision errors into account).  RayPlaneIntersection
RayPlaneIntersection calculates a position where a ray interects a plane. Returns false if there is no intersection.  Rotate(Point3D, Double, Double)
Rotates the Point3D for heading and attitude in degrees  Rotate(Vector3D, Double, Double)
Rotates the Vector3D for heading and attitude in degrees
Top See Also