13 MVec(
double x,
double y,
double z );
113 return ( i == 0 ?
d_x : ( i == 1 ?
d_y :
d_z ) );
double operator%(const MVec &ovec) const
const MVec c_vec_epsilon(c_epsilon, c_epsilon, c_epsilon)
*********************************************************************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
friend ostream & operator<<(ostream &stream, const MVec &v)
friend istream & operator>>(istream &stream, MVec &v)
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)
const MVec & operator=(const MVec ovec)
MVec operator*(double val) const
MVec operator+(const MVec &ovec) const
double pow(double value, const Exponent &exp)
double distance_between(MVec &end) const
double operator[](int i) const