Skip to main content

Class MathUtils

Namespace: Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math
Assembly: Aurigma.DesignAtoms.ImageProcessing.dll
Syntax
public static class MathUtils

Inheritance: System.Object -> MathUtils

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Methods

Distance

public static float Distance(float x1, float y1, float x2, float y2)
Parameters
TypeNameDescription
System.Singlex1
System.Singley1
System.Singlex2
System.Singley2
Returns

System.Single

Distance

public static float Distance(IPointInt point1, IPointInt point2)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.IPointIntpoint1
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.IPointIntpoint2
Returns

System.Single

Distance

public static float Distance(VectorF a, VectorF b)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math.VectorFa
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math.VectorFb
Returns

System.Single

LineSlope

public static float LineSlope(VectorF direction)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math.VectorFdirection
Returns

System.Single

DotProduct

public static float DotProduct(VectorF a, VectorF b)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math.VectorFa
Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math.VectorFb
Returns

System.Single

Clamp

public static double Clamp(double value, double min, double max)
Parameters
TypeNameDescription
System.Doublevalue
System.Doublemin
System.Doublemax
Returns

System.Double

Clamp

public static int Clamp(int value, int min, int max)
Parameters
TypeNameDescription
System.Int32value
System.Int32min
System.Int32max
Returns

System.Int32

NearlyEquals

public static bool NearlyEquals(this float number, float other, float epsilon = 1E-06F)
Parameters
TypeNameDescription
System.Singlenumber
System.Singleother
System.Singleepsilon
Returns

System.Boolean

Was this page helpful?