Logo Search packages:      
Sourcecode: inkscape version File versions

void NR::normalized_sum ( Fvector &  r,
const Fvector &  a,
const Fvector &  b 

Computes the normalized sum of two Fvectors

r a Fvector reference where we store the result
a a Fvector reference
b a Fvector reference

Definition at line 166 of file nr-3dutils.cpp.

References normalize_vector().

    r[X_3D] = a[X_3D] + b[X_3D];
    r[Y_3D] = a[Y_3D] + b[Y_3D];
    r[Z_3D] = a[Z_3D] + b[Z_3D];

Generated by  Doxygen 1.6.0   Back to index