Math class

Some math used in this api

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

degtorad ↔ double
getter/setter pair
eps2 ↔ double
getter/setter pair
epz ↔ double
getter/setter pair
inf ↔ double
getter/setter pair
pi ↔ double
getter/setter pair
pi270 ↔ double
getter/setter pair
pi90 ↔ double
getter/setter pair
radtodeg ↔ double
getter/setter pair
twoPi ↔ double
getter/setter pair

Static Methods

acosClamp(double cos) → double
Clamp cos between -1 and 1
clamp(double value, double min, double max) → double
Clamp value between min and max
distance(List<double> p1, List<double> p2) → double
Find the distant between p1 and p2
distanceVector(Vector3 v1, Vector3 v2) → double
Get distance between v1 and v2
dotVectors(Vector3 a, Vector3 b) → double
Get the dot product between a and b
fix(double x, [double? n]) → double
Clamp x between n (3) and 10
generateUUID() → String
Create a UUID
isFinite(num v) → bool
Is num v infinate
lerp(double x, double y, double t) → double
rand(double low, double high) → double
Create random number between low and high
randInt(double low, double high) → double
Create random number between low and high