// ------------------------------------------------------------------------ // This program is complementary material for the book: // // Frank Nielsen // // Visual Computing: Geometry, Graphics, and Vision // // ISBN: 1-58450-427-7 // // Charles River Media, Inc. // // // All programs are available at http://www.charlesriver.com/visualcomputing/ // // You may use this program for ACADEMIC and PERSONAL purposes ONLY. // // // The use of this program in a commercial product requires EXPLICITLY // written permission from the author. The author is NOT responsible or // liable for damage or loss that may be caused by the use of this program. // // Copyright (c) 2005. Frank Nielsen. All rights reserved. // ------------------------------------------------------------------------ // ------------------------------------------------------------------------ // File: plucker.cpp // // Description: Manipulating Plucker coordinates for line/point incidence, // line/line intersection tests, etc. // ------------------------------------------------------------------------ #include "stdafx.h" #include #include //using namespace std; // Inhomogeneous coordinates class Point3D{public: double x,y,z; Point3D() {x=y=z=0.0;} Point3D(double xx, double yy, double zz) {x=xx;y=yy;z=zz;} friend ostream & operator << (ostream & os, const Point3D p) { os<<"["<