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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- Source:
Returns:
The converted temperature
- Type
- number