Changeset fca6e7
- Timestamp:
- Oct 2, 2009, 3:18:43 PM (16 years ago)
- Children:
- daf956
- Parents:
- 60cbe5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/vector.cpp
r60cbe5 rfca6e7 224 224 Direction.CopyVector(LineVector); 225 225 Direction.SubtractVector(Origin); 226 Direction.Normalize(); 226 227 //*out << Verbose(4) << "INFO: Direction is " << Direction << "." << endl; 227 228 factor = Direction.ScalarProduct(PlaneNormal); … … 233 234 helper.SubtractVector(Origin); 234 235 factor = helper.ScalarProduct(PlaneNormal)/factor; 236 if (factor < MYEPSILON) { // Origin is in-plane 237 //*out << Verbose(2) << "Origin of line is in-plane, simple." << endl; 238 CopyVector(Origin); 239 return true; 240 } 235 241 //factor = Origin->ScalarProduct(PlaneNormal)*(-PlaneOffset->ScalarProduct(PlaneNormal))/(Direction.ScalarProduct(PlaneNormal)); 236 242 Direction.Scale(factor);
Note:
See TracChangeset
for help on using the changeset viewer.