Difference between revisions of "Math"
Line 34: | Line 34: | ||
[[Special:MyLanguage/math.tan|math.tan]] ''<translate>returns tangent value of angle rad</translate>''<br/><!-- GIDEROSMTD:math.tan(rad) returns tangent value of angle rad --> | [[Special:MyLanguage/math.tan|math.tan]] ''<translate>returns tangent value of angle rad</translate>''<br/><!-- GIDEROSMTD:math.tan(rad) returns tangent value of angle rad --> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
+ | === <translate>Gideros specific methods</translate> === | ||
+ | [[Special:MyLanguage/math.length|math.length]] ''<translate>returns the length of a vector</translate>''<br/><!-- GIDEROSMTD:math.length(v) returns the length of a vector --> | ||
+ | [[Special:MyLanguage/math.cross|math.cross]] ''<translate>returns the cross product of two vectors</translate>''<br/><!-- GIDEROSMTD:math.cross(v1,v2) returns the cross product of two vectors --> | ||
+ | [[Special:MyLanguage/math.dot|math.dot]] ''<translate>returns the dot product of two vectors</translate>''<br/><!-- GIDEROSMTD:math.dot(v1,v2) returns the dot product of two vectors --> | ||
+ | [[Special:MyLanguage/math.distance|math.distance]] ''<translate>returns the distance between two points</translate>''<br/><!-- GIDEROSMTD:math.distance(a,b) returns the distance between two points --> | ||
+ | [[Special:MyLanguage/math.distances|math.distances]] ''<translate>returns the distances between a point and a set of points</translate>''<br/><!-- GIDEROSMTD:math.distances(point,point_list,order) returns the distances between a point and a set of points --> | ||
+ | [[Special:MyLanguage/math.nearest|math.nearest]] ''<translate>returns the nearest point from a list</translate>''<br/><!-- GIDEROSMTD:math.nearest(point,point_list) returns the nearest point from a list --> | ||
+ | [[Special:MyLanguage/math.normalize|math.normalize]] ''<translate>normalize a vector</translate>''<br/><!-- GIDEROSMTD:math.normalize(v) normalize a vector --> | ||
+ | [[Special:MyLanguage/math.raycast|math.raycast]] ''<translate>returns intersections between a ray and a set of shapes</translate>''<br/><!-- GIDEROSMTD:math.raycast(origin,direction,shape) returns intersections between a ray and a set of shapes --> | ||
+ | [[Special:MyLanguage/math.inside|math.inside]] ''<translate>returns wether a point is inside a shape</translate>''<br/><!-- GIDEROSMTD:math.inside(point,shape) returns wether a point is inside a shape --> | ||
+ | [[Special:MyLanguage/math.edge|math.edge]] ''<translate>returns the nearest point on the dge of a shape</translate>''<br/><!-- GIDEROSMTD:math.edge(point,shape) returns the nearest point on the dge of a shape --> | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === |
Revision as of 09:56, 26 August 2020
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 |