Namespace: math

math

Contains the following :
  • math.cosec
  • math.sec
  • math.radians
  • math.degrees
  • math.goldenRatio
  • math.getArcCircleExtreme
  • math.isAngleBetween
Source:

Methods

<static> cosec(num)

Returns the cosecant of a number
Parameters:
Name Type Description
num number the number to produce a cosecant for
Source:
Returns:
returns the cosecant of num

<static> degrees(radians)

Converts radians to degrees
Parameters:
Name Type Description
radians number the number of radians to get degrees for
Source:

<static> getArcCircleExtremes(xc, yc, radius, end, angle)

Find extreme points of a circle that are on the arc
Parameters:
Name Type Description
xc number x value of the center of the circle
yc number y value of the center of the circle
radius number radius of the circle
end number the end angle
angle number the angle to test
Source:
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
start number the start angle
end number the end angle
angle number the angle to test
Source:
Returns:
returns true if the angle is between start and end

<static> radians(degrees)

Converts degrees to radians
Parameters:
Name Type Description
degrees number the number of degrees to get radians for
Source:

<static> sec(num)

Returns the secant of a number
Parameters:
Name Type Description
num number the number to produce a secant for
Source:
Returns:
returns the secant of num