Difference between revisions of "love.math (Français)"

(Types)
Line 2: Line 2:
 
Fournit des fonctions mathématiques indépendantes du système.
 
Fournit des fonctions mathématiques indépendantes du système.
 
== Types ==
 
== Types ==
{{#ask: [[Category:Types (Franaçais)]] [[parent::love.math (Franaçais)]] [[Concept:Current]]
+
{{#ask: [[Category:Types (Français)]] [[parent::love.math (Français)]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| format=template
 
| format=template
Line 13: Line 13:
 
| ?PrettyDeprecated
 
| ?PrettyDeprecated
 
}}
 
}}
 +
 
== Fonctions ==
 
== Fonctions ==
 
{{#ask: [[Category:Functions]] [[parent::love.math]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[parent::love.math]] [[Concept:Current]]

Revision as of 01:57, 9 January 2021

Disponible depuis LÖVE 0.9.0
Ce-tte module n'est pas supporté-e par des versions plus anciennes.

Fournit des fonctions mathématiques indépendantes du système.

Types

BezierCurve (Français) Un objet de type, courbe de Bézier pouvant évaluer et rendre une courbe de Bézier de degré arbitraire. Added since 0.9.0
CompressedData (Français) Représente les données d'octets, compressées selon un algorithme spécifique. Added since 0.10.0
RandomGenerator (Français) Un objet de génération de nombre aléatoire qui a son propre état aléatoire. Added since 0.9.0
Transform (Français) Objet contenant un système de coordonnées de transformation. Added since 11.0

Fonctions

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

Enums

Voir également

Autres langues