/**
* 3x4 transformation matrix to map points from projective 3-space into the projective plane
*
* Authors:
* Maximilian Albert <Anhalter42@gmx.de>
*
* Copyright (C) 2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_PROJ_PT_H
#define SEEN_PROJ_PT_H
#include <cstdio>
// TODO: Catch the case when the constructors are called with only zeros
}
// FIXME: How should we handle wrong indices?
//if (index > 2) { return Geom::infinity(); }
}
normalize();
}
}
/*** For convenience, we define addition/subtraction etc. as "affine" operators (i.e.,
the result for finite points is the same as if the affine points were addes ***/
for ( unsigned i = 0 ; i < 2 ; ++i ) {
}
return *result;
}
for ( unsigned i = 0 ; i < 2 ; ++i ) {
}
return *result;
}
for ( unsigned i = 0 ; i < 2 ; ++i ) {
}
return *result;
}
void normalize();
char *coord_string();
inline void print(char const *s) const { printf ("%s(%8.2f : %8.2f : %8.2f)\n", s, pt[0], pt[1], pt[2]); }
};
normalize();
}
/*** For convenience, we define addition/subtraction etc. as "affine" operators (i.e.,
the result for finite points is the same as if the affine points were addes ***/
for ( unsigned i = 0 ; i < 3 ; ++i ) {
}
return *result;
}
for ( unsigned i = 0 ; i < 3 ; ++i ) {
}
return *result;
}
for ( unsigned i = 0 ; i < 3 ; ++i ) {
}
return *result;
}
}
// FIXME: How should we handle wrong indices?
//if (index > 3) { return Geom::infinity(); }
}
void normalize();
char *coord_string();
inline void print(char const *s) const {
}
};
} // namespace Proj
#endif // !SEEN_PROJ_PT_H
/*
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 :