Difference between revisions of "Designer Primitive Operator Guide"
Line 7: | Line 7: | ||
These primops will return meaningful results when used in any context. | These primops will return meaningful results when used in any context. | ||
===Math Primops=== | ===Math Primops=== | ||
Most mathematical operations use the Java <kbd>Math</kbd> | Most mathematical operations use the Java <kbd>java.lang.Math</kbd> class. These include <kbd>Math.abs</kbd>, <kbd>Math.sin</kbd>, <kbd>Math.cos</kbd>, <kbd>Math.pow</kbd> (for powers), etc. The complete list is contained [https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html here]. | ||
''Designer'' implements certain primops associated with random number generation (RNG) using an instance of the <kbd>java.util.Random</kbd> class. This RNG can be seeded from the platform so that the random sequence will be fixed. These primops are as follows: | |||
====random==== |
Revision as of 19:00, 19 June 2022
Primop Index
On this page the primops are grouped either as universally applicable, or according to the Components in which they are meaningful. Primops used outside their designated purview will return empty answers (such as 0 or nil).
Each primop in these lists has a short description and a link to further information. Use this index to find the primop that you need, and follow the link to find out how it should be used.
Universal Primops
These primops will return meaningful results when used in any context.
Math Primops
Most mathematical operations use the Java java.lang.Math class. These include Math.abs, Math.sin, Math.cos, Math.pow (for powers), etc. The complete list is contained here.
Designer implements certain primops associated with random number generation (RNG) using an instance of the java.util.Random class. This RNG can be seeded from the platform so that the random sequence will be fixed. These primops are as follows: