##### Views

- Page
- Discussion
- View source
- History

# 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 |
RandomGenerator | A random number generation object which has its own random state. | 0.9.0 |

## Functions

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 (RGB). | 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 |

## See Also

- love

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/love.math"
Category: Modules

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties