Click or drag to resize

MathHelper Class

Utility math functions and constants.
Inheritance Hierarchy
SystemObject
  DXFReaderNETMathHelper

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.8.4
Syntax
public class MathHelper

The MathHelper type exposes the following members.

Constructors
  NameDescription
Public methodMathHelper
Initializes a new instance of the MathHelper class
Top
Properties
  NameDescription
Public propertyStatic memberEpsilon
Represents the smallest number used for comparison purposes.
Top
Methods
  NameDescription
Public methodStatic memberAngle2Points(Vector2, Vector2)
Obtains the angle between two points.
Public methodStatic memberAngle2Points(Vector3, Vector3)
Obtains the angle between two points.
Public methodStatic memberArbitraryAxis
Gets the rotation matrix from the normal vector (extrusion direction) of an entity.
Public methodStatic memberArcAnglesFrom3Points
Returns the start angle and the end angle of a arc specifing start point, end point and a pont on it.
Public methodStatic memberBulgeArea
Returns the bulge area.
Public methodStatic memberBulgeLenght
Returns the bulge lenght.
Public methodStatic memberBulgeParam
Returns the bulge parameters like center, radius, etc.
Public methodStatic memberCircleCenterFrom3Points
Returns the center point of a arc/circle passing for three points.
Public methodStatic memberEntitiesToPolygon
Returns a list of vectors of given entites.
Public methodStatic memberEntityInsideEntities
Checks if an entity is contained in a list of entities representing a closed contour.
Public methodStatic memberEntityInsideEntity
Checks if an entity is contained in another entity.
Public methodStatic memberEntityInsidePolygon
Checks if an entity is contained in a list of vectors representing a polygon.
Public methodStatic memberEntityOutsidePoint
Find the entity surrounding a given point from a list of entities.
Public methodStatic memberExternalContour
Find the external contour of a group of entities.
Public methodStatic memberFindArcArcIntersections
Calculates the intersection points of two arcs.
Public methodStatic memberFindArcCircleIntersections
Calculates the intersection points of an arc and a circle.
Public methodStatic memberFindCircleCircleIntersections
Calculates the intersection points of two arcs.
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 memberFindIntersections
Find intersections point between tho entities.
Public methodStatic memberFindLineArcIntersections
Calculates the intersection points of a line and an arc.
Public methodStatic memberFindLineCircleIntersections
Calculates the intersection points of a line and a circle.
Public methodStatic memberFindLineLineIntersection
Calculates the intersection point of two lines.
Public methodStatic memberFootPerpendicular
Find the foot of a perpendicular.
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 memberPointInPolygon(EntityObject, Vector2)
Determines if the given point is inside the polygon defined by an entity.
Public methodStatic memberPointInPolygon(IEnumerableEntityObject, Vector2)
Determines if the given point is inside the polygon defined by a list of entities.
Public methodStatic memberPointInPolygon(ListVector2, Vector2)
Checks if a point is contained in a list of vectors representing a polygon.
Public methodStatic memberPointInPolygon(Vector2, Vector2)
Determines if the given point is inside the polygon.
Public methodStatic memberPointInRectangle
Checks if a point is inside a rectangle.
Public methodStatic memberPointInSegment
Checks if a point is inside a line segment.
Public methodStatic memberPointOnArcSegment
Checks if a point is inside an arc segment.
Public methodStatic memberPointOnLineSegment
Checks if a point is inside a line segment.
Public methodStatic memberPolygonArea
Returns the area value of a polygon.
Public methodStatic memberPolygonCenter
Determines the center of a polygon.
Public methodStatic memberPolygonLenght
Returns the lenght value of a polygon.
Public methodStatic memberRotateAboutAxis
Rotate given vector of angle in radians about a specified axis.
Public methodStatic memberRound
Rounds a double-precision floating-point value accordind the epsilon property.
Public methodStatic memberRoundToNearest
Round off a numeric value to the nearest of another value.
Public methodStatic memberTransform(IEnumerableVector2, Double, CoordinateSystem, CoordinateSystem)
Transforms a point list between coordinate systems.
Public methodStatic memberTransform(IEnumerableVector3, Vector3, CoordinateSystem, CoordinateSystem)
Transforms a point list between coordinate systems.
Public methodStatic memberTransform(Vector2, Double, CoordinateSystem, CoordinateSystem)
Transforms a point between coordinate systems.
Public methodStatic memberTransform(Vector3, Vector3, CoordinateSystem, CoordinateSystem)
Transforms a point between coordinate systems.
Public methodStatic memberTriangleArea
Calculates area of a triangle.
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