love.math
Available since LÖVE 0.9.0 |
This module is not supported in earlier versions. |
Provides system-independent mathematical functions.
Types
BezierCurve | A Bézier curve object that can evaluate and render Bézier curves of arbitrary degree. |
![]() |
|
RandomGenerator | A random number generation object which has its own random state. |
![]() |
Functions
love.math.gammaToLinear | Converts a color from gamma-space (sRGB) to linear-space (RGB). |
![]() |
|
love.math.getRandomSeed | Gets the seed of the random number generator. |
![]() |
|
love.math.isConvex | Checks whether a polygon is convex. |
![]() |
|
love.math.linearToGamma | Converts a color from linear-space (RGB) to gamma-space (sRGB). |
![]() |
|
love.math.newBezierCurve | Creates a new BezierCurve object. |
![]() |
|
love.math.newRandomGenerator | Creates a new RandomGenerator object. |
![]() |
|
love.math.noise | Generates a Simplex noise value in 1-4 dimensions. |
![]() |
|
love.math.random | Get uniformly distributed pseudo random number |
![]() |
|
love.math.randomNormal | Get a normally distributed pseudo random number. |
![]() |
|
love.math.setRandomSeed | Sets the seed of the random number generator. |
![]() |
|
love.math.triangulate | Decomposes a simple polygon into triangles. |
![]() |
See Also
Category: