Show / Hide Table of Contents

    Class MathExtensions

    Inheritance
    System.Object
    MathExtensions
    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: Lucene.Net.Support
    Assembly: Lucene.Net.dll
    Syntax
    public static class MathExtensions

    Methods

    | Improve this Doc View Source

    ToDegrees(Decimal)

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.

    Declaration
    public static decimal ToDegrees(this decimal radians)
    Parameters
    Type Name Description
    System.Decimal radians

    An angle in radians to convert to radians

    Returns
    Type Description
    System.Decimal

    The value in radians

    | Improve this Doc View Source

    ToDegrees(Double)

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.

    Declaration
    public static double ToDegrees(this double radians)
    Parameters
    Type Name Description
    System.Double radians

    An angle in radians to convert to radians

    Returns
    Type Description
    System.Double

    The value in radians

    | Improve this Doc View Source

    ToDegrees(Int32)

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.

    Declaration
    public static double ToDegrees(this int radians)
    Parameters
    Type Name Description
    System.Int32 radians

    An angle in radians to convert to radians

    Returns
    Type Description
    System.Double

    The value in radians

    | Improve this Doc View Source

    ToRadians(Decimal)

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.

    Declaration
    public static decimal ToRadians(this decimal degrees)
    Parameters
    Type Name Description
    System.Decimal degrees

    An angle in degrees to convert to radians

    Returns
    Type Description
    System.Decimal

    The value in radians

    | Improve this Doc View Source

    ToRadians(Double)

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.

    Declaration
    public static double ToRadians(this double degrees)
    Parameters
    Type Name Description
    System.Double degrees

    An angle in degrees to convert to radians

    Returns
    Type Description
    System.Double

    The value in radians

    | Improve this Doc View Source

    ToRadians(Int32)

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.

    Declaration
    public static double ToRadians(this int degrees)
    Parameters
    Type Name Description
    System.Int32 degrees

    An angle in degrees to convert to radians

    Returns
    Type Description
    System.Double

    The value in radians

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)