menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartMath - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartMath

    Represents class for specific chart mathematical values.

    Inheritance
    System.Object
    ChartMath
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public static class ChartMath

    Fields

    DoublePI

    Initializes DoublePI

    Declaration
    public const double DoublePI = 6.2831853071795862
    Field Value
    Type
    System.Double

    HalfPI

    Initializes HalfPI

    Declaration
    public const double HalfPI = 1.5707963267948966
    Field Value
    Type
    System.Double

    OneAndHalfPI

    Initializes OneAndHalfPI

    Declaration
    public const double OneAndHalfPI = 4.71238898038469
    Field Value
    Type
    System.Double

    Percent

    Initializes Percent

    Declaration
    public const double Percent = 0.01
    Field Value
    Type
    System.Double

    ToDegree

    Initializes ToDegree

    Declaration
    public const double ToDegree = 57.295779513082323
    Field Value
    Type
    System.Double

    ToRadial

    Initializes ToRadial

    Declaration
    public const double ToRadial = 0.017453292519943295
    Field Value
    Type
    System.Double

    Methods

    Max(Double[])

    Gets maximal value from parameters.

    Declaration
    public static double Max(params double[] values)
    Parameters
    Type Name Description
    System.Double[] values

    The parameters

    Returns
    Type Description
    System.Double

    The maximal value.

    MaxZero(Double)

    Gets maximal value from parameter or zero.

    Declaration
    public static double MaxZero(double value)
    Parameters
    Type Name Description
    System.Double value

    The value.

    Returns
    Type Description
    System.Double

    The double value

    Min(Double[])

    Gets minimal value from parameters.

    Declaration
    public static double Min(params double[] values)
    Parameters
    Type Name Description
    System.Double[] values

    The parameters

    Returns
    Type Description
    System.Double

    The minimal value.

    MinMax(Double, Double, Double)

    Gets minimal value from value or min and maximal from value or max.

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

    The value.

    System.Double min

    The minimal value.

    System.Double max

    The maximal value.

    Returns
    Type Description
    System.Double

    The MinMax value

    MinZero(Double)

    Gets minimal value from parameter or zero.

    Declaration
    public static double MinZero(double value)
    Parameters
    Type Name Description
    System.Double value

    The value.

    Returns
    Type Description
    System.Double

    The MinZero value

    Round(Double, Double, Boolean)

    Rounds the specified value.

    Declaration
    public static double Round(double x, double div, bool up)
    Parameters
    Type Name Description
    System.Double x

    The x value.

    System.Double div

    The divider.

    System.Boolean up

    if set to true value will be rounded up.

    Returns
    Type Description
    System.Double

    The Round off value

    SolveQuadraticEquation(Double, Double, Double, out Double, out Double)

    Solves quadratic equation in form ax^2 + bx + c = 0

    Declaration
    public static bool SolveQuadraticEquation(double a, double b, double c, out double root1, out double root2)
    Parameters
    Type Name Description
    System.Double a

    The A component

    System.Double b

    The B component

    System.Double c

    The C component

    System.Double root1

    First root.

    System.Double root2

    Second root.

    Returns
    Type Description
    System.Boolean

    Bool value

    SolveSimultaneousEquations(Vector, Vector, Vector)

    Solves the simultaneous equations in from ax1 + bx2 = c.

    Declaration
    public static Vector SolveSimultaneousEquations(Vector a, Vector b, Vector c)
    Parameters
    Type Name Description
    System.Windows.Vector a

    The a parameters.

    System.Windows.Vector b

    The b parameters.

    System.Windows.Vector c

    The c parameters.

    Returns
    Type Description
    System.Windows.Vector

    The Vector

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved