Clear Up
SharpKit Reference

JsMath.atan2 Method (JsNumber, JsNumber)

Returns the angle (in radians) from the X axis to a point (y,x).

Namespace: SharpKit.JavaScript

Class: JsMath

Syntax

public static JsNumber atan2(JsNumber y, JsNumber x)

Parameters

y
Type: SharpKit.JavaScript.JsNumber
A numeric expression representing the cartesian x-coordinate.
x
Type: SharpKit.JavaScript.JsNumber
A numeric expression representing the cartesian y-coordinate.

Return Value

Type: SharpKit.JavaScript.JsNumber
The return value is between -pi and pi, representing the angle of the supplied (y,x) point.
© Copyright 2005-2011 SharpKit. All rights reserved.