Back to Website
Show / Hide Table of Contents

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()
Namespace: Aurigma.DesignAtoms.ImageProcessing.LineWidthMeasuring.Math
Assembly: Aurigma.DesignAtoms.ImageProcessing.dll
Syntax
public static class MathUtils

Methods

Clamp(Double, Double, Double)

Declaration
public static double Clamp(double value, double min, double max)
Parameters
Type Name Description
System.Double value
System.Double min
System.Double max
Returns
Type Description
System.Double

Clamp(Int32, Int32, Int32)

Declaration
public static int Clamp(int value, int min, int max)
Parameters
Type Name Description
System.Int32 value
System.Int32 min
System.Int32 max
Returns
Type Description
System.Int32

Distance(IPointInt, IPointInt)

Declaration
public static float Distance(IPointInt point1, IPointInt point2)
Parameters
Type Name Description
IPointInt point1
IPointInt point2
Returns
Type Description
System.Single

Distance(VectorF, VectorF)

Declaration
public static float Distance(VectorF a, VectorF b)
Parameters
Type Name Description
VectorF a
VectorF b
Returns
Type Description
System.Single

Distance(Single, Single, Single, Single)

Declaration
public static float Distance(float x1, float y1, float x2, float y2)
Parameters
Type Name Description
System.Single x1
System.Single y1
System.Single x2
System.Single y2
Returns
Type Description
System.Single

DotProduct(VectorF, VectorF)

Declaration
public static float DotProduct(VectorF a, VectorF b)
Parameters
Type Name Description
VectorF a
VectorF b
Returns
Type Description
System.Single

LineSlope(VectorF)

Declaration
public static float LineSlope(VectorF direction)
Parameters
Type Name Description
VectorF direction
Returns
Type Description
System.Single

NearlyEquals(Single, Single, Single)

Declaration
public static bool NearlyEquals(this float number, float other, float epsilon = 1E-06F)
Parameters
Type Name Description
System.Single number
System.Single other
System.Single epsilon
Returns
Type Description
System.Boolean
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback