26 stream <<
' ' << v.
d_x <<
' ' << v.
d_y <<
' ' << v.
d_z;
92 MVec base = to - from;
93 MVec vec = *
this - from;
95 double dot = base%vec;
100 double percent2 = ((dot*dot)/b2)/b2;
101 if (percent2 >= 1.0){
105 double delta =
sqrt (percent2);
106 *
this = from * ( 1.0 - delta ) + to * delta;
void int int REAL REAL * y
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
MVec operator-(const MVec &ovec) const
void int int int REAL REAL REAL * z
double length_squared() const
boolean operator==(const MVec ovec) const
MVec operator/(double val) const
void move_to_line(const MVec &from, const MVec &to)
std::ostream & operator<<(std::ostream &os, const COM_exception &ex)
Print out a given exception.
MVec operator*(double val) const
MVec operator+(const MVec &ovec) const