Static
angleDetermines how to treat angle parameters or which unit to use when returning angles.
Static
angleStatic
distanceStatic
fromStatic
getStatic
isChecks if a value is a number.
Copy from: https://github.com/ReactiveX/rxjs/blob/master/src/internal/util/isNumeric.ts
Value to check
true if value is a valid, otherwise false
Static
isChecks if two rectangles overlap.
Left of first rectangle
Left of first rectangle
Left of first rectangle
Left of first rectangle
Left of second rectangle
Left of second rectangle
Left of second rectangle
Left of second rectangle
True if two rectangles overlap
Static
minmaxStatic
moveCalculates a position based on movement over time. The method makes sure the returned value is between the specified target and starting values.
Target to move to
Starting position moving from
Current time
Total time movement should take place
value between aStart and aTarget (both inclusive)
Static
moveIncreases or decreases value, so it gets nearer to a target value.
Value to reach
Current value
Value to move with
aCurrent +/- aStep or aTarget if aCurrent was closer to aTarget then aStep distance
Static
randomStatic
rotateRotates a 2D coordinate around a certain point.
Angle
X coordinate of point to rotate
Y coordinate of point to rotate
X coordinate of point to rotate around
Y coordinate of point to rotate around
An object with x and y property.
Static
toStatic
xorPerforms a logical xor on two values.
Reference: http://www.howtocreate.co.uk/xor.html
First value
Second value
True
if either aValue0 or aValue1 evaluates to a truthy but not both;
otherwise false
if both values evaluate to a truthy or falsy.
UFMath implements methods supporting numbers.