3D float scalar.
typedef struct S3f
X axis value.
float x;
Y axis value.
float y;
Z axis value.
float z;
End block 'S3f'
} S3f;
Check if x, y and z scalar values are all zero.
API bool S3fIsZero(S3f s);
s: Scalar.
returns: True if x, y and z values are both zero.
Construct scaler that is the negated value of input scalar.
API S3f S3fNeg(S3f s);
s: Other scalar.
returns: Negated scalar.
Construct scalar that is the sum of input scalars.
API S3f S3fAdd(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Sum of scalars.
Construct scalar that is the difference of input scalars.
API S3f S3fSub(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Difference of scalars.
Construct scalar that is the product of input scalars.
API S3f S3fMul(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Product of scalars.
Construct scalar that is the division of input scalars.
API S3f S3fDiv(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Division of scalars.
Get dot product of input scalars.
API float S3fDot(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Dot product of scalars.
Get cross product of input scalars.
API S3f S3fCross(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Cross product of scalars
Get angle between input scalars.
API float S3fAngle(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Angle between scalars.
Get angle of scalar on x/y plane.
API float S3fXYAngle(S3f s);
s: Scalar.
returns: x/y plane angle.
Get angle of scalar on x/z plane.
API float S3fXZAngle(S3f s);
s: Scalar.
returns: x/z plane angle.
Get angle of scalar on y/z plane.
API float S3fYZAngle(S3f s);
s: Scalar.
returns: y/z plane angle.
Get magnitude squared of scalar components.
API float S3fMagSq(S3f s);
s: Scalar.
returns: Product of scalar.
Get magnitude of a scalar.
API float S3fMag(S3f s);
s: Scalar.
returns: Magnitude of scalar.
Construct scalar that is the minimum x, y and z values of input scalars.
API S3f S3fMin(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Minimum of scalars.
Construct scalar that is the maximum x, y and z values of input scalars.
API S3f S3fMax(S3f a, S3f b);
a: First scalar.
b: Second scalar.
returns: Maximum of scalars.
Construct scalar that is the normalized value of input scalar.
API S3f S3fNorm(S3f s);
s: Other scalar.
returns: Normalized scalar.
Construct 3D float scalar.
API S3f S3fMake(float x, float y, float z);
x: X value.
y: Y value.
y: Z value.
returns: 3D float scalar.