FunctionModulus, i.e. the remainder of a division by a constant
Syntax C/C++#include <VFmath.h>
void VF_modC( fVector Y, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
void vector<T>::modC( const vector<T>& X, const T& C );
Pascal/Delphiuses VFmath;
procedure VF_modC( Y, X:fVector; size:UIntSize; C:Single );
DescriptionYi = Xi mod C
Floating-point versions: a constant C = 0.0 leads to all Yi being 0.0, independently of the Xi values (as in the ANSI C math function fmod ).
Integer versions: a constant C = 0 leads to a ZERODIVIDE error (as in the intrinsic "%" operation of ANSI C).
Error handlingnone
Return valuenone (also the floating-point versions are treated as basic arithmetic rather than mathematical functions, despite their relation to the math function fmod).
See alsoVF_modV,   VF_addC,   VF_mulC,   VF_divC,   VF_visC,   VF_redC

VectorLib Table of Contents  OptiVec home