/*
* 3D utils.
*
* Authors:
* Jean-Rene Reinhard <jr@komite.net>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <glib.h>
#include "display/nr-3dutils.h"
#include <cmath>
namespace NR {
p *= trans;
x = p[Geom::X];
y = p[Geom::Y];
z *= trans[0];
}
}
//TODO test nv == 0
for (int j = 0; j < 3; j++) {
v[j] /= nv;
}
}
}
normalize_vector(r);
}
}/* namespace NR */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :