Difference between revisions of "Math"
(vector) |
|||
Line 10: | Line 10: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | [[math.abs]] ''returns absolute value of v''<br/><!-- GIDEROSMTD:math.abs(v) returns absolute value of v --> | + | [[math.abs]] ''returns absolute value of v''<br/><!--GIDEROSMTD:math.abs(v) returns absolute value of v--> |
− | [[math.acos]] ''returns arc cosine value of v in radians''<br/><!-- GIDEROSMTD:math.acos(v) returns arc cosine value of v in radians --> | + | [[math.acos]] ''returns arc cosine value of v in radians''<br/><!--GIDEROSMTD:math.acos(v) returns arc cosine value of v in radians--> |
− | [[math.asin]] ''returns arc sine value of v in radians''<br/><!-- GIDEROSMTD:math.asin(v) returns arc sine value of v in radians --> | + | [[math.asin]] ''returns arc sine value of v in radians''<br/><!--GIDEROSMTD:math.asin(v) returns arc sine value of v in radians--> |
− | [[math.atan]] ''returns arc tangent value of v in radians''<br/><!-- GIDEROSMTD:math.atan(v) returns arc tangent value of v in radians --> | + | [[math.atan]] ''returns arc tangent value of v in radians''<br/><!--GIDEROSMTD:math.atan(v) returns arc tangent value of v in radians--> |
− | [[math.atan2]] ''returns arc tangent value of v1/v2 in radians''<br/><!-- GIDEROSMTD:math.atan2(v1,v2) returns arc tangent value of v1/v2 in radians --> | + | [[math.atan2]] ''returns arc tangent value of v1/v2 in radians''<br/><!--GIDEROSMTD:math.atan2(v1,v2) returns arc tangent value of v1/v2 in radians--> |
− | [[math.ceil]] ''returns smallest integer >= v''<br/><!-- GIDEROSMTD:math.ceil(v) returns smallest integer >= v --> | + | [[math.ceil]] ''returns smallest integer >= v''<br/><!--GIDEROSMTD:math.ceil(v) returns smallest integer >= v--> |
− | [[math.cos]] ''returns cosine value of angle rad''<br/><!-- GIDEROSMTD:math.cos(rad) returns cosine value of angle rad --> | + | [[math.cos]] ''returns cosine value of angle rad''<br/><!--GIDEROSMTD:math.cos(rad) returns cosine value of angle rad--> |
− | [[math.deg]] ''returns angle in degrees of radians rad''<br/><!-- GIDEROSMTD:math.deg(rad) returns angle in degrees of radians rad --> | + | [[math.deg]] ''returns angle in degrees of radians rad''<br/><!--GIDEROSMTD:math.deg(rad) returns angle in degrees of radians rad--> |
− | [[math.exp]] ''returns e^v''<br/><!-- GIDEROSMTD:math.exp(v) returns e^v --> | + | [[math.exp]] ''returns e^v''<br/><!--GIDEROSMTD:math.exp(v) returns e^v--> |
− | [[math.floor]] ''returns largest integer <= v''<br/><!-- GIDEROSMTD:math.floor(v) returns largest integer <= v --> | + | [[math.floor]] ''returns largest integer <= v''<br/><!--GIDEROSMTD:math.floor(v) returns largest integer <= v--> |
− | [[math.fmod]] ''returns remainder of v1/v2 which is v1 - iV2 for some integer i''<br/><!-- GIDEROSMTD:math.fmod(v1,v2) returns remainder of v1/v2 which is v1 - iV2 for some integer i --> | + | [[math.fmod]] ''returns remainder of v1/v2 which is v1 - iV2 for some integer i''<br/><!--GIDEROSMTD:math.fmod(v1,v2) returns remainder of v1/v2 which is v1 - iV2 for some integer i--> |
− | [[math.frexp]] ''returns mantissa [0.5,1- and exponent values of v''<br/><!-- GIDEROSMTD:math.frexp(v) returns mantissa [0.5,1- and exponent values of v --> | + | [[math.frexp]] ''returns mantissa [0.5,1- and exponent values of v''<br/><!--GIDEROSMTD:math.frexp(v) returns mantissa [0.5,1- and exponent values of v--> |
− | [[math.ldexp]] ''returns v1*2^v2''<br/><!-- GIDEROSMTD:math.ldexp(v1,v2) returns v1*2^v2 --> | + | [[math.ldexp]] ''returns v1*2^v2''<br/><!--GIDEROSMTD:math.ldexp(v1,v2) returns v1*2^v2--> |
− | [[math.log]] ''returns natural logarithm of v''<br/><!-- GIDEROSMTD:math.log(v) returns natural logarithm of v --> | + | [[math.log]] ''returns natural logarithm of v''<br/><!--GIDEROSMTD:math.log(v) returns natural logarithm of v--> |
− | [[math.log10]] ''returns logarithm 10 of v''<br/><!-- GIDEROSMTD:math.log10(v) returns logarithm 10 of v --> | + | [[math.log10]] ''returns logarithm 10 of v''<br/><!--GIDEROSMTD:math.log10(v) returns logarithm 10 of v--> |
− | [[math.max]] ''returns maximum in a list of one or more values''<br/><!-- GIDEROSMTD:math.max(v1,...) returns maximum in a list of one or more values --> | + | [[math.max]] ''returns maximum in a list of one or more values''<br/><!--GIDEROSMTD:math.max(v1,...) returns maximum in a list of one or more values--> |
− | [[math.min]] ''returns minimum in a list of one or more values''<br/><!-- GIDEROSMTD:math.min(v1,...) returns minimum in a list of one or more values --> | + | [[math.min]] ''returns minimum in a list of one or more values''<br/><!--GIDEROSMTD:math.min(v1,...) returns minimum in a list of one or more values--> |
− | [[math.pow]] ''returns v1 raised to the power of v2''<br/><!-- GIDEROSMTD:math.pow(v1,v2) returns v1 raised to the power of v2 --> | + | [[math.pow]] ''returns v1 raised to the power of v2''<br/><!--GIDEROSMTD:math.pow(v1,v2) returns v1 raised to the power of v2--> |
− | [[math.rad]] ''returns angle in radians of degrees deg''<br/><!-- GIDEROSMTD:math.rad(deg) returns angle in radians of degrees deg --> | + | [[math.rad]] ''returns angle in radians of degrees deg''<br/><!--GIDEROSMTD:math.rad(deg) returns angle in radians of degrees deg--> |
− | [[math.random]] ''returns random real [0,1-, integer [1,n] or real [1,u](with n=1-''<br/><!-- GIDEROSMTD:math.random(n,u) returns random real [0,1-, integer [1,n] or real [1,u](with n=1- --> | + | [[math.random]] ''returns random real [0,1-, integer [1,n] or real [1,u](with n=1-''<br/><!--GIDEROSMTD:math.random(n,u) returns random real [0,1-, integer [1,n] or real [1,u](with n=1- --> |
− | [[math.randomseed]] ''sets seed for pseudo-random number generator''<br/><!-- GIDEROSMTD:math.randomseed(seed) sets seed for pseudo-random number generator --> | + | [[math.randomseed]] ''sets seed for pseudo-random number generator''<br/><!--GIDEROSMTD:math.randomseed(seed) sets seed for pseudo-random number generator--> |
− | [[math.sin]] ''returns sine value of angle rad''<br/><!-- GIDEROSMTD:math.sin(rad) returns sine value of angle rad --> | + | [[math.sin]] ''returns sine value of angle rad''<br/><!--GIDEROSMTD:math.sin(rad) returns sine value of angle rad--> |
− | [[math.sqrt]] ''returns square root of v''<br/><!-- GIDEROSMTD:math.sqrt(v) returns square root of v --> | + | [[math.sqrt]] ''returns square root of v''<br/><!--GIDEROSMTD:math.sqrt(v) returns square root of v--> |
− | [[math.tan]] ''returns tangent value of angle rad''<br/><!-- GIDEROSMTD:math.tan(rad) returns tangent value of angle rad --> | + | [[math.tan]] ''returns tangent value of angle rad''<br/><!--GIDEROSMTD:math.tan(rad) returns tangent value of angle rad--> |
+ | [[vector]] ''vectors''<br/><!--GIDEROSMTD:vector() vectors--> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| |
Revision as of 04:22, 13 May 2022
Supported platforms:
Available since: Gideros 2011.6
Description
math table holds most commonly used math functions and constants.
Methodsmath.abs returns absolute value of v |
Gideros specific methodsmath.length returns the length of a vector EventsConstants |