IMath Methods

Methods

AddRectangleD Calculates a new rectangle form two other rectangles.
Between Is PointBetween between PointA and PointB?
CalculateCenter Calculates the Center for a given Start/End Point, Angle and direction
CorrectCenter Calculate correct center of arc (ignore clockwise).
Cos Cosinus with special cases for rounding problems.
CrossingLineCircle Calculates the crossing point of an line and an circle.
CrossingPoint Calculates the crossing point of two lines.
Deg2Rad Calculates from degree to radian values.
DistanceEdgeToEdge Calculate the distance between two edges.
DistanceLineToLine Distance line to line calculates the nearest points and returns the distance.
DistanceOnArc Calculate length on arc depending on radius and angle of arc.
DistancePointToArc Distance Point to arc calculates the distance from a point P to the arc edge Arc.
DistancePointToEdge Calculate the distance between a point and an edge.
DistancePointToInfLine(PointD, PointD, PointD, PointD) Calculates the distance between a point and a straight line through LineP1 and LineP2.
DistancePointToInfLine(PointF, PointF, PointF, PointF) Calculates the distance between a point and a straight line through LineP1 and LineP2.
DistancePointToLine(PointD, PointD, PointD, PointD) Calculates the distance between a line and a point (PointDistance).
DistancePointToLine(PointF, PointF, PointF, PointD) Calculates the distance between a line and a point (PointDistance).
DistancePointToPoint(PointD, PointD) Calculates the distance between two points.
DistancePointToPoint(PointF, PointF) Calculates the distance between two points.
DistancePointToPolygon Calculate the distance between a point and a polygon.
DistanceRectangleToPoint Calculate the distance of a rectangle to a point. And check is the point included inside of the rectange.
DistanceRectangleToRectangle Calculate the distance of two rectangles and check one of the rectangle is included in second one.
GetAngle(PointD, PointD) Returns the delta-angle of an arc. This angle is between 0 and 360 degrees.
GetAngle(PointD, PointD, PointD, Boolean) Returns the delta-angle of an arc. This angle is between 0 and 360 degrees.
GetCorrectedAngleLine Returns an angle-corrected line with angle in 15° steps (same length as given points have)
GetEndPoint This functions is used to calculate the endpoint given a Center Point ,a Radius and an angle.
GetHashFromImage Gets a string representing a size reduced b/w image
GetImageHashMatchPercent Returns the percentage of match between the 2 hash codes (must have the same length)
GetIntersectingPoints Calculate intersecting points of two circles.
GetLength Calculate the length of the edge element.
GetMidPoint(PointD, PointD) The middle pf two points.
GetMidPoint(PointF, PointF) The middle of two points.It calculates a line through both points and take exact the middle of both points.
GetPerpendicularPoint Returns the perpendicular point of p on the straight line
GetPointOnArc(Double, Double) Calculates a point on an Arc with center zero.
GetPointOnArc(PointD, Double, Double) Calculates a point on an Arc with center.
GetPointOnLine Calculates a point on a Line with a certain distance from the start point.
IsPointOnLine(PointD, PointD, PointD) Checks is the point P on the line?
IsPointOnLine(PointD, PointD, PointD, Boolean) Checks is the point P on the line?
LinesAreParallel(PointD, PointD, PointD, PointD, Double) Check the lines (Line1 and Line2) are parallel?
LinesAreParallel(PointF, PointF, PointF, PointF, Double) Check the lines (Line1 and Line2) are parallel?
Micron2Mils Calculate the mil value from a µm value.
Micron2MilsDec Calculate the mil value from a µm value.
Mils2Micron Calculate the µm value from a mil value.
Mils2MicronDec Calculate the µm value from a mil value.
Mils2MM Calculate the mm value from a mil value.
Mils2MMDec 
MM2Mils(Double) Calculate the mil value from a mm value.
MM2Mils(PointD) Creates a new point with values from mm to mils
MM2MilsDec Calculate the mil value from a mm value.
PointMils2MM Create a new point with input point values from mils to mm.
PointOnArc Calculates a point on an zero based arc with given angle.
Rad2Deg From radian to degree
RectanglesIntersect Check Rectangles intersecting?
RectangleTransformWithMatrix(RectangleD, MatrixD) A rectangle will be transformed with the given matrix m.
RectangleTransformWithMatrix(RectangleD, Matrix) A rectangle will be transformed with the given matrix m.
Rotate Rotates a point with Angle in degrees.
RotateRectangleAndWiden Rotate the rectangle, if its not %90 degree it must be widen in X and Y direction.
SameMatrix Check the two matrix objects, whether they identically. Check all elements of the matrix 1 and matrix 2, if all elements are identically it returns true.
SamePoints(PointD, PointD) The points are the same on 0.001 value?
SamePoints(PointD, PointD, Double) The points are the same on errorLevel value?
SameRectangle The rectangles are the same on 0.001 value?
Sin Sinus with special cases for rounding problems.
TransformPoint(Matrix, PointD) Transforms a Point with the matrix Mat. You can easily do it yourself, but here is a way to do it with one line code.
TransformPoint(MatrixD, PointD) Transforms a Point with the matrix Mat. You can easily do it yourself, but here is a way to do it with one line code.

See Also