logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       Generated automatically by Doxygen for MPQC from the source code.

Version 2.3.1                                    Sun Oct 4 2020                                      sc::vec2(3)

Name

       sc::vec2

Synopsis

PublicMemberFunctionsvec2 (const double x, const double y)
       vec2 (const double d)
       vec2 (const vec2 &v)
       vec2 (const vec3 &v)
       vec2 (const vec3 &v, int dropAxis)
       vec2 & operator= (const vec2 &v)
       vec2 & operator+= (const vec2 &v)
       vec2 & operator-= (const vec2 &v)
       vec2 & operator*= (const double d)
       vec2 & operator/= (const double d)
       double & operator[] (int i)
       const double & operator[] (int i) const
       double length ()
       double length2 ()
       vec2 & normalize ()
       vec2 & apply (V_FCT_PTR fct)

   ProtectedAttributes
       double n [2]

   Friends
       class vec3vec2operator- (const vec2 &v)
       vec2operator+ (const vec2 &a, const vec2 &b)
       vec2operator- (const vec2 &a, const vec2 &b)
       vec2operator* (const vec2 &a, const double d)
       vec2operator* (const double d, const vec2 &a)
       vec2operator* (const mat3 &a, const vec2 &v)
       vec2operator* (const vec2 &v, mat3 &a)
       double operator* (const vec2 &a, const vec2 &b)
       vec2operator/ (const vec2 &a, const double d)
       vec3operator^ (const vec2 &a, const vec2 &b)
       int operator== (const vec2 &a, const vec2 &b)
       int operator!= (const vec2 &a, const vec2 &b)
       std::ostream & operator<< (std::ostream &s, vec2 &v)
       std::istream & operator>> (std::istream &s, vec2 &v)
       void swap (vec2 &a, vec2 &b)
       vec2min (const vec2 &a, const vec2 &b)
       vec2max (const vec2 &a, const vec2 &b)
       vec2prod (const vec2 &a, const vec2 &b)

See Also