MATHLIB_EXPORT P_POINT addscaled(P_POINT pr, PC_POINT pv1, PC_POINT pv2, RCOORD k);
vectlib.h
Adds a vector scaled by a scalar to another vector, results in a third vector.
The pointer to the result vector may be the same vector as vector 1 or vector 2.
_POINT result; P_POINT v1 = _X; P_POINT v2 = _Y; RCOORD k = 1.414; addscaled( result, v1, v2, k ); // result is ( 1, 1.414, 0 )
Functions