2D float scalar.
typedef struct S2f
X axis value.
float x;
Y axis value.
float y;
End block 'S2f'
} S2f;
Check if x and y values are both zero.
API bool S2fIsZero(S2f s);
s: Scalar.
returns: True if x and y values are both zero.
Construct scalar that is the negated value of other scalar.
API S2f S2fNeg(S2f s);
s: Other scalar.
returns: Negated scalar.
Construct scalar that is the sum of input scalars.
API S2f S2fAdd(S2f a, S2f b);
a: First scalar.
b: Second scalar.
returns: Sum of scalars.
Construct scalar that is the difference of input scalars.
API S2f S2fSub(S2f a, S2f b);
a: First scalar.
b: Second scalar.
returns: Difference of scalars.
Construct scalar that is the product of input scalars.
API S2f S2fMul(S2f a, S2f b);
a: First scalar.
b: Second scalar.
returns: Product of scalars.
Construct scalar that is the division of input scalars.
API S2f S2fDiv(S2f a, S2f b);
a: First scalar.
b: Second scalar.
returns: Division of scalars.
Construct scalar that is the minimum x and y values of input scalars.
API S2f S2fMin(S2f a, S2f 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 S2f S2fMax(S2f a, S2f b);
a: First scalar.
b: Second scalar.
returns: Maximum of scalars.
Construct 2D float scalar.
API S2f S2fMake(float x, float y);
x: X value.
y: Y value.
returns: 2D float scalar.