MathUtilities Class
Unstable.
Note: This API is unstable and may change in a future release.
Provides math utilities not provided in System.Math.
Definition
Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[UnstableAttribute("This API might be removed in next major version. Please use corresponding BCL APIs.")]
public static class MathUtilities
<UnstableAttribute("This API might be removed in next major version. Please use corresponding BCL APIs.")>
Public NotInheritable Class MathUtilities
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<UnstableAttribute("This API might be removed in next major version. Please use corresponding BCL APIs.")>]
type MathUtilities = class end
Inheritance | Object → MathUtilities |
Methods
AreClose(Double, Double) | AreClose - Returns whether or not two doubles are "close". That is, whether or not they are within epsilon of each other. |
AreClose(Single, Single) | AreClose - Returns whether or not two floats are "close". That is, whether or not they are within epsilon of each other. |
AreClose(Double, Double, Double) | AreClose - Returns whether or not two doubles are "close". That is, whether or not they are within epsilon of each other. |
Clamp(Decimal, Decimal, Decimal) | Clamps a value between a minimum and maximum value. |
Clamp(Double, Double, Double) | Clamps a value between a minimum and maximum value. |
Clamp(Int32, Int32, Int32) | Clamps a value between a minimum and maximum value. |
Clamp(Single, Single, Single) | Clamps a value between a minimum and maximum value. |
Deg2Rad(Double) | Converts an angle in degrees to radians. |
GetEllipsePoint(Point, Double, Double, Double) | Calculates the point of an angle on an ellipse. |
GetMinMax(Double, Double) | Gets the minimum and maximum from the specified numbers. |
GetMinMaxFromDelta(Double, Double) | Gets the minimum and maximum from the specified number and the difference with that number. |
Grad2Rad(Double) | Converts an angle in gradians to radians. |
GreaterThan(Double, Double) | GreaterThan - Returns whether or not the first double is greater than the second double. That is, whether or not the first is strictly greater than and not within epsilon of the other number. |
GreaterThan(Single, Single) | GreaterThan - Returns whether or not the first float is greater than the second float. That is, whether or not the first is strictly greater than and not within epsilon of the other number. |
GreaterThanOrClose(Double, Double) | GreaterThanOrClose - Returns whether or not the first double is greater than or close to the second double. That is, whether or not the first is strictly greater than or within epsilon of the other number. |
GreaterThanOrClose(Single, Single) | GreaterThanOrClose - Returns whether or not the first float is greater than or close to the second float. That is, whether or not the first is strictly greater than or within epsilon of the other number. |
IsOne(Double) | IsOne - Returns whether or not the double is "close" to 1. Same as AreClose(double, 1), but this is faster. |
IsOne(Single) | IsOne - Returns whether or not the float is "close" to 1. Same as AreClose(float, 1), but this is faster. |
IsZero(Double) | IsZero - Returns whether or not the double is "close" to 0. Same as AreClose(double, 0), but this is faster. |
IsZero(Single) | IsZero - Returns whether or not the float is "close" to 0. Same as AreClose(float, 0), but this is faster. |
LessThan(Double, Double) | LessThan - Returns whether or not the first double is less than the second double. That is, whether or not the first is strictly less than and not within epsilon of the other number. |
LessThan(Single, Single) | LessThan - Returns whether or not the first float is less than the second float. That is, whether or not the first is strictly less than and not within epsilon of the other number. |
LessThanOrClose(Double, Double) | LessThanOrClose - Returns whether or not the first double is less than or close to the second double. That is, whether or not the first is strictly less than or within epsilon of the other number. |
LessThanOrClose(Single, Single) | LessThanOrClose - Returns whether or not the first float is less than or close to the second float. That is, whether or not the first is strictly less than or within epsilon of the other number. |
Turn2Rad(Double) | Converts an angle in turns to radians. |