#include <MathClasses.h>
Public Member Functions | |
Vector2D () | |
Vector2D (JString xml) | |
Vector2D (XMLNode *node) | |
Vector2D (double x, double y) | |
virtual | ~Vector2D () |
Object * | clone () const |
double | operator[] (int n) const |
bool | operator== (const Vector2D &v) const |
Vector2D | operator- (const Vector2D &v) const |
Vector2D | operator+ (const Vector2D &v) const |
double | operator* (const Vector2D &v) const |
Vector2D | operator- (double a) const |
Vector2D | operator+ (double a) const |
Vector2D | operator* (double a) const |
const Vector2D & | operator-= (const Vector2D &v) |
const Vector2D & | operator+= (const Vector2D &v) |
const Vector2D & | operator-= (double a) |
const Vector2D & | operator+= (double a) |
const Vector2D & | operator*= (double a) |
double | getX () const |
double | getY () const |
bool | set (const PointFloat &p1, const PointFloat &p2) |
bool | set (double x1, double y1, double x2, double y2) |
bool | set (double x, double y) |
bool | setX (double v) |
bool | setY (double v) |
double | length () const |
double | det (const Vector2D &v) const |
bool | isOrthogonalWith (const Vector2D &v) const |
bool | isParallelWith (const Vector2D &v) const |
Vector2D | getProjectionOn (const Vector2D &v) const |
Vector2D | getUnitVector () const |
Vector2D | getOrthogonalVector () const |
double | getAngle (const Vector2D &v) const |
double | getArea (const Vector2D &v) const |
JString | print () |
JString | toXML () |
bool | fromXML (XMLNode *node) |
Public Attributes | |
double | x |
double | y |
Definition at line 453 of file MathClasses.h.
cmlabs::Vector2D::Vector2D | ( | ) |
Definition at line 1585 of file MathClasses.cpp.
cmlabs::Vector2D::Vector2D | ( | JString | xml | ) |
Definition at line 1587 of file MathClasses.cpp.
cmlabs::Vector2D::Vector2D | ( | XMLNode * | node | ) |
Definition at line 1592 of file MathClasses.cpp.
cmlabs::Vector2D::Vector2D | ( | double | x, | |
double | y | |||
) |
Definition at line 1586 of file MathClasses.cpp.
cmlabs::Vector2D::~Vector2D | ( | ) | [virtual] |
Definition at line 1597 of file MathClasses.cpp.
Object * cmlabs::Vector2D::clone | ( | ) | const [virtual] |
double cmlabs::Vector2D::operator[] | ( | int | n | ) | const |
Definition at line 1604 of file MathClasses.cpp.
bool cmlabs::Vector2D::operator== | ( | const Vector2D & | v | ) | const |
Definition at line 1614 of file MathClasses.cpp.
Definition at line 1620 of file MathClasses.cpp.
Definition at line 1627 of file MathClasses.cpp.
double cmlabs::Vector2D::operator* | ( | const Vector2D & | v | ) | const |
Definition at line 1634 of file MathClasses.cpp.
Vector2D cmlabs::Vector2D::operator- | ( | double | a | ) | const |
Definition at line 1638 of file MathClasses.cpp.
Vector2D cmlabs::Vector2D::operator+ | ( | double | a | ) | const |
Definition at line 1645 of file MathClasses.cpp.
Vector2D cmlabs::Vector2D::operator* | ( | double | a | ) | const |
Definition at line 1652 of file MathClasses.cpp.
Definition at line 1659 of file MathClasses.cpp.
Definition at line 1665 of file MathClasses.cpp.
const Vector2D & cmlabs::Vector2D::operator-= | ( | double | a | ) |
Definition at line 1671 of file MathClasses.cpp.
const Vector2D & cmlabs::Vector2D::operator+= | ( | double | a | ) |
Definition at line 1677 of file MathClasses.cpp.
const Vector2D & cmlabs::Vector2D::operator*= | ( | double | a | ) |
Definition at line 1683 of file MathClasses.cpp.
double cmlabs::Vector2D::getX | ( | ) | const |
Definition at line 1691 of file MathClasses.cpp.
double cmlabs::Vector2D::getY | ( | ) | const |
Definition at line 1692 of file MathClasses.cpp.
bool cmlabs::Vector2D::set | ( | const PointFloat & | p1, | |
const PointFloat & | p2 | |||
) |
Definition at line 1694 of file MathClasses.cpp.
bool cmlabs::Vector2D::set | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2 | |||
) |
Definition at line 1698 of file MathClasses.cpp.
bool cmlabs::Vector2D::set | ( | double | x, | |
double | y | |||
) |
Definition at line 1702 of file MathClasses.cpp.
bool cmlabs::Vector2D::setX | ( | double | v | ) |
Definition at line 1703 of file MathClasses.cpp.
bool cmlabs::Vector2D::setY | ( | double | v | ) |
Definition at line 1704 of file MathClasses.cpp.
double cmlabs::Vector2D::length | ( | ) | const |
Definition at line 1726 of file MathClasses.cpp.
double cmlabs::Vector2D::det | ( | const Vector2D & | v | ) | const |
Definition at line 1730 of file MathClasses.cpp.
bool cmlabs::Vector2D::isOrthogonalWith | ( | const Vector2D & | v | ) | const |
Definition at line 1734 of file MathClasses.cpp.
bool cmlabs::Vector2D::isParallelWith | ( | const Vector2D & | v | ) | const |
Definition at line 1738 of file MathClasses.cpp.
Definition at line 1742 of file MathClasses.cpp.
Vector2D cmlabs::Vector2D::getUnitVector | ( | ) | const |
Definition at line 1747 of file MathClasses.cpp.
Vector2D cmlabs::Vector2D::getOrthogonalVector | ( | ) | const |
Definition at line 1751 of file MathClasses.cpp.
double cmlabs::Vector2D::getAngle | ( | const Vector2D & | v | ) | const |
Definition at line 1755 of file MathClasses.cpp.
double cmlabs::Vector2D::getArea | ( | const Vector2D & | v | ) | const |
Definition at line 1762 of file MathClasses.cpp.
JString cmlabs::Vector2D::print | ( | ) | [virtual] |
JString cmlabs::Vector2D::toXML | ( | ) | [virtual] |
bool cmlabs::Vector2D::fromXML | ( | XMLNode * | node | ) | [virtual] |
double cmlabs::Vector2D::x |
Definition at line 464 of file MathClasses.h.
double cmlabs::Vector2D::y |
Definition at line 465 of file MathClasses.h.