Click or drag to resize

MathHelper Class

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Utility math functions and constants.
Inheritance Hierarchy
SystemObject
  netDxfMathHelper

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public static class MathHelper
Request Example View Source

The MathHelper type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberEpsilon
Represents the smallest number used for comparison purposes.
Top
Methods
  NameDescription
Public methodStatic memberArbitraryAxis
Gets the rotation matrix from the normal vector (extrusion direction) of an entity.
Public methodStatic memberFindIntersection(Vector2, Vector2, Vector2, Vector2)
Calculates the intersection point of two lines.
Public methodStatic memberFindIntersection(Vector2, Vector2, Vector2, Vector2, Double)
Calculates the intersection point of two lines.
Public methodStatic memberIsEqual(Double, Double)
Checks if a number is equal to another.
Public methodStatic memberIsEqual(Double, Double, Double)
Checks if a number is equal to another.
Public methodStatic memberIsOne(Double)
Checks if a number is close to one.
Public methodStatic memberIsOne(Double, Double)
Checks if a number is close to one.
Public methodStatic memberIsZero(Double)
Checks if a number is close to zero.
Public methodStatic memberIsZero(Double, Double)
Checks if a number is close to zero.
Public methodStatic memberNormalizeAngle
Normalizes the value of an angle in degrees between [0, 360[.
Public methodStatic memberPointInSegment(Vector2, Vector2, Vector2)
Checks if a point is inside a line segment.
Public methodStatic memberPointInSegment(Vector3, Vector3, Vector3)
Checks if a point is inside a line segment.
Public methodStatic memberPointLineDistance(Vector2, Vector2, Vector2)
Calculates the minimum distance between a point and a line.
Public methodStatic memberPointLineDistance(Vector3, Vector3, Vector3)
Calculates the minimum distance between a point and a line.
Public methodStatic memberRotateAboutAxis
Rotate given vector of angle in radians about a specified axis.
Public methodStatic memberRoundToNearest
Round off a numeric value to the nearest of another value.
Public methodStatic memberTransform(Vector2, Double, CoordinateSystem, CoordinateSystem)
Transforms a point between coordinate systems.
Public methodStatic memberTransform(IEnumerableVector2, Double, CoordinateSystem, CoordinateSystem)
Transforms a point list between coordinate systems.
Public methodStatic memberTransform(Vector3, Vector3, CoordinateSystem, CoordinateSystem)
Transforms a point between coordinate systems.
Public methodStatic memberTransform(IEnumerableVector3, Vector3, CoordinateSystem, CoordinateSystem)
Transforms a point list between coordinate systems.
Top
Fields
  NameDescription
Public fieldStatic memberDegToGrad
Constant to transform an angle between degrees and gradians.
Public fieldStatic memberDegToRad
Constant to transform an angle between degrees and radians.
Public fieldStatic memberGradToDeg
Constant to transform an angle between degrees and gradians.
Public fieldStatic memberHalfPI
PI/2 (90 degrees)
Public fieldStatic memberPI
PI (180 degrees)
Public fieldStatic memberRadToDeg
Constant to transform an angle between degrees and radians.
Public fieldStatic memberThreeHalfPI
3*PI/2 (270 degrees)
Public fieldStatic memberTwoPI
2*PI (360 degrees)
Top
See Also