|
Index
C++ Code Documentation
template <class Number> math::Vector2Math
Derived from: math::Vector2
File: BASE/math/Vector2Math.H
public:
- inline Vector2Math();
 | void constructor | |
- inline Vector2Math( Number, Number, Number );
 | constructor | |
- inline Vector2Math( Number * );
 | constructor | |
- inline Vector2Math( Vector2<Number> const &a );
 | copy constructor | |
- inline ~Vector2Math();
 | destructor | |
- inline Vector2Math<Number> &operator=( Vector2<Number> const &a );
 | assignment operators | |
- inline Vector2Math<Number> perp();
 | R^2 OPERATIONS returns perpendicular base::vector (rotated right 90 degrees) | |
- static inline Number det( Vector2Math<Number> const &a, Vector2Math<Number> const &b );
- static inline Number det( Vector2Math<Number> const &a, Vector2Math<Number> const &b, Vector2Math<Number> const &c);
 | Returns twice the area of the oriented triangle (a, b, c), i.e., the area is positive if the triangle is oriented counterclockwise. | |
- static inline bool ccw( Vector2Math<Number> const &a, Vector2Math<Number> const &b, Vector2Math<Number> const &c);
 | Returns true if the points a, b, c are in a counterclockwise order | |
- static inline bool cw( Vector2Math<Number> const &a, Vector2Math<Number> const &b, Vector2Math<Number> const &c);
 | Returns true if the points a, b, c are in a clockwise order | |
- static inline Number angle( Vector2Math<Number> const &a, Vector2Math<Number> const &b );
- static inline Number angle( Vector2Math<Number> const &a, Vector2Math<Number> const &o, Vector2Math<Number> const &b );
- static bool inCircle( Vector2Math<Number> const & a, Vector2Math<Number> const & b, Vector2Math<Number> const & c, Vector2Math<Number> const & d);
- static Vector2Math<Number> circumcenter( Vector2Math<Number> const & a, Vector2Math<Number> const & b, Vector2Math<Number> const & c);
 | Returns the center of the circle through points a, b, c. | |
- static inline bool same_side( Vector2Math<Number> const &a, Vector2Math<Number> const &b, Vector2Math<Number> const &x, Vector2Math<Number> const &y );
- static inline bool opposite( Vector2Math<Number> const &a, Vector2Math<Number> const &b, Vector2Math<Number> const &x, Vector2Math<Number> const &y );
- static inline bool intersect( Vector2Math<Number> const &a1, Vector2Math<Number> const &a2, Vector2Math<Number> const &b1, Vector2Math<Number> const &b2 );
- static inline Vector2Math<Number> intersection( Vector2Math<Number> const &a1, Vector2Math<Number> const &a2, Vector2Math<Number> const &b1, Vector2Math<Number> const &b2 );
 | returns the intersection of a1<->a2, b1<->b2 | |
protected:
private:
|