Was this page helpful?

Num.Atan2

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    num.Atan2(x : num, y : num) : num
    

    Get the angle whose tangent is the quotient of two specified numbers.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    x
    num x number value
    y
    num y number value

     

    Result

    The tangent angle value of the quotient x/y

    Note: though the correct answer for atan2(0,0) is undefined, we return a 0.

     

    Samples


    Output

    To find the arc-tangent2 angle value:

    {{ num.atan2(1,1) }} 

     

    0.785398163397448

    To find the arc-tangent2 angle value:

    {{ num.atan2(0,0) }} 

     

    0
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by