37 #ifndef EGS_PROJECTORS_
38 #define EGS_PROJECTORS_
98 EGS_Float length()
const {
101 EGS_Float length2()
const {
105 EGS_Float tmp=1./length();
122 EGS_Float operator*(
const EGS_Vector &x)
const {
128 EGS_Float length()
const {
134 EGS_Float distance(
const EGS_Vector &x)
const {
137 const string &getType()
const {
140 void printInfo()
const {};
164 EGS_Float operator*(
const EGS_Vector &x)
const {
170 EGS_Float length()
const {
176 EGS_Float distance(
const EGS_Vector &x)
const {
179 const string &getType()
const {
182 void printInfo()
const {};
206 EGS_Float operator*(
const EGS_Vector &x)
const {
212 EGS_Float length()
const {
218 EGS_Float distance(
const EGS_Vector &x)
const {
221 const string &getType()
const {
224 void printInfo()
const {};
286 void printInfo()
const;
295 return v1*x.x + v2*x.y;
300 return xo + v1*x.x + v2*x.y;
#define EGS_EXPORT
Export symbols from the egspp library.
EGS_Float distance(const EGS_Vector &x) const
Get the distance from x to the plane (positive, negative or zero, depending on which side of the plan...
A class representing 2D vectors.
EGS_Vector methods for the manipulation of 3D vectors in cartesian co-ordinates.
A class representing 3D vectors.
EGS_Vector normal() const
Get the normal to the projection plane.
EGS_Vector operator*(EGS_Float t) const
Get the plane normal scaled by t.
EGS_Float length() const
Get the length of the plane normal.
A projector into any plane.
EGS_2DVector getProjection(const EGS_Vector &x) const
Get the 2D projection of the vector x onto the plane.
EGS_Vector normal(const EGS_2DVector &x) const
?
Attempts to fix broken math header files.
A projector into the z-plane.
A projector into the y-plane.
const string & getType() const
Get the name (type) of this projector.
A projector into the x-plane.
EGS_Vector getPoint(const EGS_2DVector &x) const
Get a 3D position from the 2D position x.
EGS_Float operator*(const EGS_Vector &x) const
Get the scalar product between x and the plane normal.