ClassRadMath
Provides static mathematical functions and constants.
Definition
Namespace:Telerik.Charting
Assembly:Telerik.Windows.Controls.Chart.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.
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
GetPolarCoordinates(RadPoint, RadPoint, out double, out double)
Gets the polar coordinates (radius and angle) from the given arcPoint.
Declaration
public static void GetPolarCoordinates(RadPoint arcPoint, RadPoint center, out double radius, out double angle)
Parameters
arcPoint
The point in cartesian coordinates.
center
The center.
radius
The distance from the center.
angle
The angle in degrees.
Remarks
This is the reverse operation of GetArcPoint(double, RadPoint, double).
GetStandardDeviation(IEnumerable<double>)
Gets the standard deviation of a set of numbers.
Declaration
public static double GetStandardDeviation(IEnumerable<double> values)
Parameters
values
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.