An error occurred while uploading, please try again.
We are planning maintenance on MyAximmetry site from 2025-AUG-01 07:00 to 2025-AUG-01 08:00 UTC. During this period, the site will not be available. Please refrain from initiating any ordering processes around this time to avoid potential issues.
Cookie consent
Our website uses cookies to give you the best online experience, also we use other technologies to improve
and analyze our website traffic, and to understand where our visitors are coming from.
Hi,
It is only for calculations, however you have the if function and the logical operations to do some logic.
All operations can be applied both on scalars and vectors of any elements.
Arithmetic operators
-a
a + b
a - b
a * b
a / b
a % b (modulo)
a ^ b (power)
Logical operators
!a
a | b
a & b
Relational operators
a = b
a != b
a < b
a <= b
a > b
a >= b
Arithmetic functions
abs(a)
acos(a)
atan(a)
asin(a)
avg(a, b) (average)
ceil(a)
clamp(x, a, b)
cos(a)
exp(a)
floor(a)
inv(a) (invert, 1 - a)
lerp(a, b, x)
log(a)
max(a, b)
min(a, b)
mod(a, b) (modulo)
modb(a, b, base) (modulo with base)
rec(a) (reciprocal, 1 / a)
round(a)
sin(a)
sqr(a)
sqrt(a)
tan(a)
unlerp(x, a, b)
Logical functions
if(x, a, b) (if x then a else b)
xor(a, b)
bit(a, x) (test the xth bit)
Vector functions
cross(a, b)
dot(a, b)
len(a)
norm(a) (normalize)
concat(a, b)
dim(a) (dimension, number of elements in a)
fill(v, n) (create a vector with n elements filled with value v)
insert(a, i, b) (insert elements of b into a at index i)
item(a, s, i) (get ith element of size s from a)
slice(a, s, i, n) (get n elements of size s from start index i from a)