CodeMeltedMath class

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

Constructors

CodeMeltedMath()
Sets up the internal instance for this object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

celsiusToFahrenheit({required double temp}) double
Converts celsius to fahrenheit.
celsiusToKelvin({required double temp}) double
Converts celsius to kelvin
fahrenheitToCelsius({required double temp}) double
Converts fahrenheit to celsius.
fahrenheitToKelvin({required double temp}) double
Converts fahrenheit to kelvin.
geodeticDistance({required double startLatitude, required double startLongitude, required double endLatitude, required double endLongitude}) double
Calculates the distance in meters between two WGS84 points.
geodeticHeading({required double startLatitude, required double startLongitude, required double endLatitude, required double endLongitude}) double
Calculates the geodetic heading WGS84 to true north represented as 0 and rotating around 360 degrees.
geodeticSpeed({required double startMilliseconds, required double startLatitude, required double startLongitude, required double endMilliseconds, required double endLatitude, required double endLongitude}) double
Calculates the speed between two points in meters per second.
kelvinToCelsius({required double temp}) double
Converts kelvin to celsius
kelvinToFahrenheit({required double temp}) double
Converts kelvin to fahrenheit
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited