Difference between revisions of "love.math"
m (Temporarily made newin 0.9.0+ functions visible) |
m (Added deprecation support) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=module}} | {{newin|[[0.9.0]]|090|type=module}} | ||
− | Provides system independent mathematical functions. | + | Provides system-independent mathematical functions. |
== Types == | == Types == | ||
− | {{#ask: [[Category:Types]] [[parent::love.math]] | + | {{#ask: [[Category:Types]] [[parent::love.math]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| format=template | | format=template | ||
Line 11: | Line 11: | ||
| ?PrettySince | | ?PrettySince | ||
| ?PrettyRemoved | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
== Functions == | == Functions == | ||
− | {{#ask: [[Category:Functions]] [[parent::love.math]] | + | {{#ask: [[Category:Functions]] [[parent::love.math]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| format=template | | format=template | ||
Line 22: | Line 23: | ||
| ?PrettySince | | ?PrettySince | ||
| ?PrettyRemoved | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
+ | }} | ||
+ | == Enums == | ||
+ | {{#ask: [[Category:Enums]] [[parent::love.math]] [[Concept:Current]] | ||
+ | | headers=hide | ||
+ | | format=template | ||
+ | | template=ListingFields | ||
+ | | introtemplate=ListingIntro | ||
+ | | outrotemplate=ListingOutro | ||
+ | | ?Description | ||
+ | | ?PrettySince | ||
+ | | ?PrettyRemoved | ||
+ | | ?PrettyDeprecated | ||
}} | }} | ||
== See Also == | == See Also == | ||
* [[parent::love]] | * [[parent::love]] | ||
[[Category:Modules]] | [[Category:Modules]] | ||
− | {{#set:Description=Provides system independent mathematical functions.}} | + | {{#set:Description=Provides system-independent mathematical functions.}} |
== Other Languages == | == Other Languages == | ||
{{i18n|love.math}} | {{i18n|love.math}} |
Latest revision as of 07:59, 5 May 2019
Available since LÖVE 0.9.0 |
This module is not supported in earlier versions. |
Provides system-independent mathematical functions.
Contents
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 | |
Transform | Object containing a coordinate system transformation. | 11.0 |
Functions
love.math.colorFromBytes | Converts a color from 0..255 to 0..1 range. | 11.3 | |
love.math.colorToBytes | Converts a color from 0..1 to 0..255 range. | 11.3 | |
love.math.compress | Compresses a string or data using a specific compression algorithm. | 0.10.0 | 11.0 |
love.math.decompress | Decompresses a CompressedData or previously compressed string or Data object. | 0.10.0 | 11.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.getRandomState | Gets the current state of the random number generator. | 0.9.1 | |
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.newTransform | Creates a new Transform object. | 11.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.setRandomState | Sets the current state of the random number generator. | 0.9.1 | |
love.math.triangulate | Decomposes a simple polygon into triangles. | 0.9.0 |
Enums
See Also
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