Table of Contents

Class Atan

Namespace
YndigoBlue.Velocity.Functions
Assembly
YndigoBlue.Velocity.dll

Represents the ATAN (arctangent) inverse trigonometric function that calculates the angle whose tangent is the input.

public class Atan : Function, ICheckItem, IDefaultItem, IFilterItem, IElement
Inheritance
Atan
Implements

Remarks

The ATAN function calculates the arctangent (inverse tangent) of a value and returns an angle in radians. The input can be any real number. The result is an angle between -pi/2 and pi/2 radians. Use DEGREES to convert the result to degrees if needed. For two-argument arctangent (considering quadrant), use ATAN2. This is useful for angle calculations, slope analysis, and inverse trigonometric operations.

Examples

Calculate the arctangent of each slope value in the terrain table:

var schema = manager.LoadSchema("terrain");
var slopes = schema["slopes"];

var query = new Query()
    .Select([ slopes["id"], new Expression("angle_radians", new Atan(slopes["rise_over_run"])) ])
    .From(slopes);

var results = manager.Retrieve(query);

Constructors

Atan(IEnumerable<IElement>)

Initializes a new instance of ATAN for a composed expression (e.g. ATAN(rise / run)).

Atan(IElement)

Initializes a new instance of ATAN for any element.

Atan(Column)

Initializes a new instance of ATAN for a column.

Atan(Expression)

Initializes a new instance of ATAN for an expression.