2D integer scalar.
typedef struct S2i

X axis value.
int x;

Y axis value.
int y;

End block 'S2i'
} S2i;

Check if x and y values are both zero.
API bool S2iIsZero(S2i s);
s: Scalar.
returns: True if x and y values are both zero.

Construct scalar that is the negated value of other scalar.
API S2i S2iNeg(S2i s);
s: Other scalar.
returns: Negated scalar.

Construct scalar that is the sum of input scalars.
API S2i S2iAdd(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Sum of scalars.

Construct scalar that is the difference of input scalars.
API S2i S2iSub(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Difference of scalars.

Construct scalar that is the product of input scalars.
API S2i S2iMul(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Product of scalars.

Construct scalar that is the division of input scalars.
API S2i S2iDiv(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Division of scalars.

Construct scalar that is the modulo of input scalars.
API S2i S2iMod(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Modulo of scalars.

Construct scalar that is the minimum x and y values of input scalars.
API S2i S2iMin(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Minimum of scalars.

Construct scalar that is the maximum x and y values of input scalars.
API S2i S2iMax(S2i a, S2i b);
a: First scalar.
b: Second scalar.
returns: Maximum of scalars.

Construct 2D integer scalar.
API S2i S2iMake(int x, int y);
x: X value.
y: Y value.
returns: 2D integer scalar.