Math class

Constructors

Math()

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 Properties

infinity double
getter/setter pair
ln10 double
getter/setter pair
ln2 double
getter/setter pair
log2e double
getter/setter pair
maxSafeInteger int
getter/setter pair
maxValue double
getter/setter pair
sqrt1_2 double
getter/setter pair

Static Methods

abs(num x) num
acos(num x) double
asin(num x) double
atan(double x) double
atan2(num x, num y) double
ceil(num x) int
cos(num x) double
exp(num x) double
floor(num x) int
log(num x) num
log2(num x) double
max<T extends num>(T x, T y) → T
max3(num x, num y, num z) num
min<T extends num>(T x, T y) → T
min3(num x, num y, num z) num
pow(num x, num y) num
randFloat(num low, num high) double
randFloatSpread(num range) double
random() double
randomFromA2B(num a, num b) double
round(num x) int
sign(double x) double
sin(num x) double
sqrt(num x) double
tan(num x) double

Constants

epsilon → const double
pi → const double