ClassRadMath
Provides static mathematical functions and constants.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.WinControls.dll
Syntax:
public static class RadMath
Inheritance: objectRadMath
Fields
DegToRadFactor
The factor used to convert degrees to their radians equivalent.
Declaration
public const double DegToRadFactor = 0.017453292519943295
Field Value
Epsilon
Smallest unit such that 1.0+DBL_EPSILON != 1.0.
Declaration
public const double Epsilon = 2.220446049250313E-09
Field Value
RadToDegFactor
The factor used to convert radians to their degree equivalent.
Declaration
public const double RadToDegFactor = 57.29577951308232
Field Value
Methods
AreClose(double, double)
Determines whether the two specified values are close within the order of EPSILON.
AreClose(double, double, double)
Determines whether the two specified values are close within the order of tolerance.
Declaration
public static bool AreClose(double value1, double value2, double tolerance)
Parameters
value1
The first value to compare.
value2
The second value to compare.
tolerance
The tolerance value for comparison.
Returns
True if the values are close within the tolerance; otherwise, false.
GetArcPoint(double, RadPoint, double)
Gets the point that lies on the arc segment of the ellipse, described by the center and radius parameters.
GetPointDistance(double, double, double, double)
Gets the distance between two points in a plane.
Declaration
public static double GetPointDistance(double x1, double x2, double y1, double y2)
Parameters
x1
The x-coordinate of the first point.
x2
The x-coordinate of the second point.
y1
The y-coordinate of the first point.
y2
The y-coordinate of the second point.
Returns
IsOne(decimal)
Determines whether the specified value is close to 1 within the order of EPSILON.
IsOne(double)
Determines whether the specified value is close to 1 within the order of EPSILON.
IsZero(decimal)
Determines whether the specified value is close to 0 within the order of EPSILON.
IsZero(double)
Determines whether the specified value is close to 0 within the order of EPSILON.