2#ifndef SEEN_NR_3DUTILS_H
3#define SEEN_NR_3DUTILS_H
31 v[0] =
v[1] =
v[2] = 0.0;
3x3 matrix representing an affine transformation.
Contains forward declarations of 2geom types.
void normalize_vector(Fvector &v)
Normalizes a vector.
gdouble scalar_product(const Fvector &a, const Fvector &b)
Computes the scalar product between two Fvectors.
gdouble norm(const Fvector &v)
returns the euclidean norm of the vector v
static const Fvector EYE_VECTOR(0, 0, 1)
The eye vector.
void normalized_sum(Fvector &r, const Fvector &a, const Fvector &b)
Computes the normalized sum of two Fvectors.
void convert_coord(gdouble &x, gdouble &y, gdouble &z, Geom::Affine const &trans)
a type of 3 gdouble components vectors
double & operator[](unsigned i)
double operator[](unsigned i) const
Fvector(double x, double y, double z)