SqlFunctions.Atan2 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.
Overloads
Atan2(Nullable<Decimal>, Nullable<Decimal>) |
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value. |
Atan2(Nullable<Double>, Nullable<Double>) |
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value. |
Remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see ATN2 (Transact-SQL).
Atan2(Nullable<Decimal>, Nullable<Decimal>)
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.
public:
static Nullable<double> Atan2(Nullable<System::Decimal> arg1, Nullable<System::Decimal> arg2);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ATN2")]
public static double? Atan2 (decimal? arg1, decimal? arg2);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ATN2")>]
static member Atan2 : Nullable<decimal> * Nullable<decimal> -> Nullable<double>
Public Shared Function Atan2 (arg1 As Nullable(Of Decimal), arg2 As Nullable(Of Decimal)) As Nullable(Of Double)
Parameters
Returns
An angle, measured in radians.
- Attributes
Remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see ATN2 (Transact-SQL).
Applies to
Atan2(Nullable<Double>, Nullable<Double>)
Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.
public:
static Nullable<double> Atan2(Nullable<double> arg1, Nullable<double> arg2);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ATN2")]
public static double? Atan2 (double? arg1, double? arg2);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ATN2")>]
static member Atan2 : Nullable<double> * Nullable<double> -> Nullable<double>
Public Shared Function Atan2 (arg1 As Nullable(Of Double), arg2 As Nullable(Of Double)) As Nullable(Of Double)
Parameters
Returns
An angle, measured in radians.
- Attributes
Remarks
You cannot call this function directly. This function can only appear within a LINQ to Entities query.
This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see ATN2 (Transact-SQL).