Contains the following :
- math.cosec
- math.sec
- math.radians
- math.degrees
- math.goldenRatio
- math.getArcCircleExtreme
- math.isAngleBetween
Methods
-
<static> cosec(num)
-
Returns the cosecant of a number
Parameters:
Name Type Description numnumber the number to produce a cosecant for Returns:
returns the cosecant of num -
<static> degrees(radians)
-
Converts radians to degrees
Parameters:
Name Type Description radiansnumber the number of radians to get degrees for -
<static> getArcCircleExtremes(xc, yc, radius, end, angle)
-
Find extreme points of a circle that are on the arc
Parameters:
Name Type Description xcnumber x value of the center of the circle ycnumber y value of the center of the circle radiusnumber radius of the circle endnumber the end angle anglenumber the angle to test Returns:
[[array of x values on the arc], [array of y values on the arc]] -
<static> isAngleBetween(start, end, angle)
-
Returns if an angle is between two angles
Parameters:
Name Type Description startnumber the start angle endnumber the end angle anglenumber the angle to test Returns:
returns true if the angle is between start and end -
<static> radians(degrees)
-
Converts degrees to radians
Parameters:
Name Type Description degreesnumber the number of degrees to get radians for -
<static> sec(num)
-
Returns the secant of a number
Parameters:
Name Type Description numnumber the number to produce a secant for Returns:
returns the secant of num