love.math

Available since LÖVE 0.9.0
This module is not supported in earlier versions.

Provides system-independent mathematical functions.

Types

BezierCurveA Bézier curve object that can evaluate and render Bézier curves of arbitrary degree.Added since 0.9.0
RandomGeneratorA random number generation object which has its own random state.Added since 0.9.0

Functions

love.math.gammaToLinearConverts a color from gamma-space (sRGB) to linear-space (RGB).Added since 0.9.1
love.math.getRandomSeedGets the seed of the random number generator.Added since 0.9.0
love.math.isConvexChecks whether a polygon is convex.Added since 0.9.0
love.math.linearToGammaConverts a color from linear-space (RGB) to gamma-space (sRGB).Added since 0.9.1
love.math.newBezierCurveCreates a new BezierCurve object.Added since 0.9.0
love.math.newRandomGeneratorCreates a new RandomGenerator object.Added since 0.9.0
love.math.noiseGenerates a Simplex noise value in 1-4 dimensions.Added since 0.9.0
love.math.randomGet uniformly distributed pseudo random numberAdded since 0.9.0
love.math.randomNormalGet a normally distributed pseudo random number.Added since 0.9.0
love.math.setRandomSeedSets the seed of the random number generator.Added since 0.9.0
love.math.triangulateDecomposes a simple polygon into triangles.Added since 0.9.0

See Also

Other Languages

Personal tools