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. 0.9.0
CompressedData Byte data compressed using a specific algorithm. 0.10.0
RandomGenerator A random number generation object which has its own random state. 0.9.0

Functions

love.math.compress Compresses a string or data using a specific compression algorithm. 0.10.0
love.math.decompress Decompresses a CompressedData or previously compressed string or Data object. 0.10.0
love.math.gammaToLinear Converts a color from gamma-space (sRGB) to linear-space (RGB). 0.9.1
love.math.getRandomSeed Gets the seed of the random number generator. 0.9.0
love.math.isConvex Checks whether a polygon is convex. 0.9.0
love.math.linearToGamma Converts a color from linear-space (RGB) to gamma-space (sRGB). 0.9.1
love.math.newBezierCurve Creates a new BezierCurve object. 0.9.0
love.math.newRandomGenerator Creates a new RandomGenerator object. 0.9.0
love.math.noise Generates a Simplex noise value in 1-4 dimensions. 0.9.0
love.math.random Get uniformly distributed pseudo-random number 0.9.0
love.math.randomNormal Get a normally distributed pseudo random number. 0.9.0
love.math.setRandomSeed Sets the seed of the random number generator. 0.9.0
love.math.triangulate Decomposes a simple polygon into triangles. 0.9.0

Enums

CompressedDataFormat Compressed data formats. 0.10.0

See Also

love.math.gammaToLinear
  • References/Game Development/LÖVE/love.math

love.math.gammaToLinear Available since LÖVE 0.9.1 This function is not supported in earlier versions. Converts a color from gamma-space (sRGB)

2025-01-10 15:47:30
BezierCurve:getDerivative
  • References/Game Development/LÖVE/love.math/BezierCurve

BezierCurve:getDerivative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get the derivative of the Bézier curve

2025-01-10 15:47:30
BezierCurve:removeControlPoint
  • References/Game Development/LÖVE/love.math/BezierCurve

BezierCurve:removeControlPoint Available since LÖVE 0.10.0 This function is not supported in earlier versions. Removes the specified control

2025-01-10 15:47:30
love.math.noise
  • References/Game Development/LÖVE/love.math

love.math.noise Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a Simplex or Perlin noise value in

2025-01-10 15:47:30
RandomGenerator:setSeed
  • References/Game Development/LÖVE/love.math/RandomGenerator

RandomGenerator:setSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the seed of the random number generator

2025-01-10 15:47:30
love.math.decompress
  • References/Game Development/LÖVE/love.math

love.math.decompress Available since LÖVE 0.10.0 This function is not supported in earlier versions. Decompresses a

2025-01-10 15:47:30
love.math.newRandomGenerator
  • References/Game Development/LÖVE/love.math

love.math.newRandomGenerator Available since LÖVE 0.9.0 This function is not supported in earlier versions. Creates a new

2025-01-10 15:47:30
BezierCurve:getControlPoint
  • References/Game Development/LÖVE/love.math/BezierCurve

BezierCurve:getControlPoint Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get coordinates of the i-th control

2025-01-10 15:47:30
RandomGenerator:random
  • References/Game Development/LÖVE/love.math/RandomGenerator

RandomGenerator:random Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a pseudo-random number in a

2025-01-10 15:47:30
BezierCurve:translate
  • References/Game Development/LÖVE/love.math/BezierCurve

BezierCurve:translate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Move the Bézier curve by an offset.

2025-01-10 15:47:30