MathHelper class

Static helper functions for common number/math needs.

Constructors

MathHelper()

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

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

Static Methods

dartSignedIntTo16BitSigned(int val) int
Takes any Dart val between -32768 & 32767 and makes a zmachine-readable 16-bit signed 'word' from it.
toSigned(int val) int
Converts a game 16-bit 'word' val into a signed Dart int.