Alex Szpakowski
|
185b53421a
Fix function declaration type mismatch (didn't cause any errors).
|
3 years ago |
megagrump
|
136c3cd277
use double precision numbers in love.math.noise
|
3 years ago |
Alex Szpakowski
|
f89aabb0bb
Update copyright year for 2021
|
4 years ago |
Alex Szpakowski
|
fc4847c69d
Update copyright for the new year
|
5 years ago |
Alex Szpakowski
|
0752f27bdf
Update copyright year for 2019
|
6 years ago |
Alex Szpakowski
|
5d5c2f9a96
math and data module instances are now deleted when they have no more Lua references (matches the behaviour of other modules.) Fixes the deprecation system not fully restarting when love.event.quit("restart") is called.
|
6 years ago |
Bart van Strien
|
e80247c191
Happy new year! ✨
|
7 years ago |
Alex Szpakowski
|
90e86c329d
Add love.data module.
|
8 years ago |
Alex Szpakowski
|
ac697ddb0f
Clean up love’s internal Vector code a bit, and rename it to Vector2 so it’s more obvious what it is.
|
8 years ago |
Alex Szpakowski
|
abb72cb813
Happy new year! 🥂
|
8 years ago |
Alex Szpakowski
|
14aa6965b3
Added Transform objects to love.math (resolves issue #1228).
|
8 years ago |
Alex Szpakowski
|
ef61573cd3
Merge default into minor
|
9 years ago |
Alex Szpakowski
|
677a8d60b8
Use love::Vector (8 bytes) instead of love::Vertex (20 bytes) for love.math.triangulate and love.math.isConvex.
|
9 years ago |
Bart van Strien
|
3a2e859acd
Add love.math.hash, which supports MD5/SHA-1/SHA-2.
|
9 years ago |
Alex Szpakowski
|
cc1b9bc619
Moved most love.math functions out of the Math class, since they're pure functions.
|
9 years ago |
Alex Szpakowski
|
734789eb93
Added love.math.encode(format, data | string [, linelength]) and love.math.decode(format, data | string). Current formats are "base64" and "hex". The optional line length only applies to base64 and specifies the maximum number of characters per line in the encoded string.
|
9 years ago |
Alex Szpakowski
|
46a2e7b85c
Happy new year! 🎉
|
9 years ago |
Alex Szpakowski
|
20fb7f44df
Cleaned up the code for love.math.random and related functions.
|
9 years ago |
Alex Szpakowski
|
2e9154283c
Added gzip support to love.math.compress and love.math.decompress.
|
10 years ago |
Alex Szpakowski
|
c3fd7a25a3
Fixed some misc. compiler warnings.
|
10 years ago |
Alex Szpakowski
|
97806f87c0
Replaced Simplex noise with Perlin noise for the 3D and 4D variants of love.math.noise, to avoid patent-infringement issues (resolves issue #997.)
|
10 years ago |
Alex Szpakowski
|
a29b349014
Added love.math.compress(data, format [, level]) and love.math.decompress(compresseddata) / love.math.decompress(compressedstring, format).
|
10 years ago |
Alex Szpakowski
|
c7b45b3505
Updated copyright for the new year
|
10 years ago |
Alex Szpakowski
|
d52bab4221
Updated the new module changes to use more compile/link-time checking rather than runtime checking.
|
11 years ago |
Alex Szpakowski
|
d07e31370d
Added RandomGenerator:getState and RandomGenerator:setState (resolves issue #831.)
|
11 years ago |
Alex Szpakowski
|
e54d771be4
Added love.math.gammaToLinear and love.math.linearToGamma for converting RGB color values from the sRGB color-space to linear and vice-versa.
|
11 years ago |
Alex Szpakowski
|
3120a0e650
Goodbye 2013, hello 2014!
|
11 years ago |
Alex Szpakowski
|
1c8abc74aa
Renamed love.math.g/setRandomState and rng:g/setState to love.math.g/setRandomSeed and rng:g/setSeed.
|
11 years ago |
Alex Szpakowski
|
5de43a7207
The Vertex struct is now recognized as POD by C++, also fixed the name to be consistent with other love structs
|
12 years ago |
Alex Szpakowski
|
5c0066332f
love.math.noise now returns values in the range of [0, 1] instead of [-1, 1]
|
12 years ago |