mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Added optional arg squared
to lume.distance()
This commit is contained in:
parent
be71dbda78
commit
f144927542
@ -44,8 +44,10 @@ interpolation.
|
||||
### lume.pingpong(x)
|
||||
Ping-pongs the number `x` between 0 and 1.
|
||||
|
||||
### lume.distance(x1, y1, x2, y2)
|
||||
Returns the distance between the two points.
|
||||
### lume.distance(x1, y1, x2, y2 [, squared])
|
||||
Returns the distance between the two points. If `squared` is true then the
|
||||
squared distance is returned -- this is faster to calculate and can still be
|
||||
used when comparing distances.
|
||||
|
||||
### lume.angle(x1, y1, x2, y2)
|
||||
Returns the angle between the two points.
|
||||
|
Loading…
Reference in New Issue
Block a user