31 return sqrt(v[X_3D]*v[X_3D] + v[Y_3D]*v[Y_3D] + v[Z_3D]*v[Z_3D]);
37 for (
int j = 0; j < 3; j++) {
43 return a[X_3D] * b[X_3D] +
49 r[X_3D] = a[X_3D] + b[X_3D];
50 r[Y_3D] = a[Y_3D] + b[Y_3D];
51 r[Z_3D] = a[Z_3D] + b[Z_3D];
Cartesian point / 2D vector and related operations.
3x3 affine transformation matrix.
3x3 matrix representing an affine transformation.
Two-dimensional point that doubles as a vector.
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
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