Namespace: codemelted_math

codemelted_math

Provides a math utility API with a collection of mathematical formulas I have either had to use, research, or just found on the Internet.
Source:

Methods

(static) celsiusToFahrenheit(params) → {number}

Converts celsius to fahrenheit.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number

(static) celsiusToKelvin(params) → {number}

Converts celsius to kelvin.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number

(static) fahrenheitToCelsius(params) → {number}

Converts fahrenheit to celsius
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number

(static) fahrenheitToKelvin(params) → {number}

Converts fahrenheit to kelvin
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number

(static) geodeticDistance(params) → {number}

Calculates the distance in meters between two WGS84 points.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
startLatitude number The starting latitude coordinate.
startLongitude number The starting longitude coordinate.
endLatitude number The ending latitude coordinate.
endLongitude number The ending longitude coordinate.
Source:
Returns:
The calculated distance.
Type
number

(static) geodeticHeading(params) → {number}

Calculates the geodetic heading WGS84 to true north represented as 0 and rotating around 360 degrees.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
startLatitude number The starting latitude coordinate.
startLongitude number The starting longitude coordinate.
endLatitude number The ending latitude coordinate.
endLongitude number The ending longitude coordinate.
Source:
Returns:
The calculated heading.
Type
number

(static) geodeticSpeed(params) → {number}

Calculates the speed between two points in meters per second.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
startMilliseconds number The starting time in milliseconds.
startLatitude number The starting latitude coordinate.
startLongitude number The starting longitude coordinate.
endMilliseconds number The ending time in milliseconds.
endLatitude number The ending latitude coordinate.
endLongitude number The ending longitude coordinate.
Source:
Returns:
The calculated heading.
Type
number

(static) kelvinToCelsius(params) → {number}

Converts kelvin to celsius.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number

(static) kelvinToFahrenheit(params) → {number}

Converts kelvin to fahrenheit.
Parameters:
Name Type Description
params object The named parameters
Properties
Name Type Description
temp number The temperature to convert.
Source:
Returns:
The converted temperature
Type
number