#include <MathClasses.h>
Public Member Functions | |
Vector3D () | |
Vector3D (JString xml) | |
Vector3D (XMLNode *node) | |
Vector3D (double x, double y, double z) | |
virtual | ~Vector3D () |
Object * | clone () const |
double | operator[] (int n) const |
bool | operator== (const Vector3D &v) const |
Vector3D | operator- (const Vector3D &v) const |
Vector3D | operator+ (const Vector3D &v) const |
double | operator* (const Vector3D &v) const |
Vector3D | operator- (double a) const |
Vector3D | operator+ (double a) const |
Vector3D | operator* (double a) const |
const Vector3D & | operator-= (const Vector3D &v) |
const Vector3D & | operator+= (const Vector3D &v) |
const Vector3D & | operator-= (double a) |
const Vector3D & | operator+= (double a) |
const Vector3D & | operator*= (double a) |
double | getX () const |
double | getY () const |
double | getZ () const |
bool | set (const PointFloat &p1, const PointFloat &p2) |
bool | set (double x1, double y1, double z1, double x2, double y2, double z2) |
bool | set (double x, double y, double z) |
bool | setX (double v) |
bool | setY (double v) |
bool | setZ (double v) |
double | length () const |
Vector3D | product (const Vector3D &v) const |
bool | isOrthogonalWith (const Vector3D &v) const |
bool | isParallelWith (const Vector3D &v) const |
Vector3D | getProjectionOn (const Vector3D &v) const |
Vector3D | getUnitVector () const |
double | getAngle (const Vector3D &v) const |
double | getArea (const Vector3D &v) const |
JString | print () |
JString | toXML () |
bool | fromXML (XMLNode *node) |
Public Attributes | |
double | x |
double | y |
double | z |
Definition at line 512 of file MathClasses.h.
cmlabs::Vector3D::Vector3D | ( | ) |
Definition at line 1773 of file MathClasses.cpp.
cmlabs::Vector3D::Vector3D | ( | JString | xml | ) |
Definition at line 1775 of file MathClasses.cpp.
cmlabs::Vector3D::Vector3D | ( | XMLNode * | node | ) |
Definition at line 1780 of file MathClasses.cpp.
cmlabs::Vector3D::Vector3D | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 1774 of file MathClasses.cpp.
cmlabs::Vector3D::~Vector3D | ( | ) | [virtual] |
Definition at line 1785 of file MathClasses.cpp.
Object * cmlabs::Vector3D::clone | ( | ) | const [virtual] |
double cmlabs::Vector3D::operator[] | ( | int | n | ) | const |
Definition at line 1792 of file MathClasses.cpp.
bool cmlabs::Vector3D::operator== | ( | const Vector3D & | v | ) | const |
Definition at line 1804 of file MathClasses.cpp.
Definition at line 1811 of file MathClasses.cpp.
Definition at line 1819 of file MathClasses.cpp.
double cmlabs::Vector3D::operator* | ( | const Vector3D & | v | ) | const |
Definition at line 1827 of file MathClasses.cpp.
Vector3D cmlabs::Vector3D::operator- | ( | double | a | ) | const |
Definition at line 1831 of file MathClasses.cpp.
Vector3D cmlabs::Vector3D::operator+ | ( | double | a | ) | const |
Definition at line 1839 of file MathClasses.cpp.
Vector3D cmlabs::Vector3D::operator* | ( | double | a | ) | const |
Definition at line 1847 of file MathClasses.cpp.
Definition at line 1855 of file MathClasses.cpp.
Definition at line 1862 of file MathClasses.cpp.
const Vector3D & cmlabs::Vector3D::operator-= | ( | double | a | ) |
Definition at line 1869 of file MathClasses.cpp.
const Vector3D & cmlabs::Vector3D::operator+= | ( | double | a | ) |
Definition at line 1876 of file MathClasses.cpp.
const Vector3D & cmlabs::Vector3D::operator*= | ( | double | a | ) |
Definition at line 1883 of file MathClasses.cpp.
double cmlabs::Vector3D::getX | ( | ) | const |
Definition at line 1892 of file MathClasses.cpp.
double cmlabs::Vector3D::getY | ( | ) | const |
Definition at line 1893 of file MathClasses.cpp.
double cmlabs::Vector3D::getZ | ( | ) | const |
Definition at line 1894 of file MathClasses.cpp.
bool cmlabs::Vector3D::set | ( | const PointFloat & | p1, | |
const PointFloat & | p2 | |||
) |
Definition at line 1896 of file MathClasses.cpp.
bool cmlabs::Vector3D::set | ( | double | x1, | |
double | y1, | |||
double | z1, | |||
double | x2, | |||
double | y2, | |||
double | z2 | |||
) |
Definition at line 1900 of file MathClasses.cpp.
bool cmlabs::Vector3D::set | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 1904 of file MathClasses.cpp.
bool cmlabs::Vector3D::setX | ( | double | v | ) |
Definition at line 1905 of file MathClasses.cpp.
bool cmlabs::Vector3D::setY | ( | double | v | ) |
Definition at line 1906 of file MathClasses.cpp.
bool cmlabs::Vector3D::setZ | ( | double | v | ) |
Definition at line 1907 of file MathClasses.cpp.
double cmlabs::Vector3D::length | ( | ) | const |
Definition at line 1932 of file MathClasses.cpp.
Definition at line 1936 of file MathClasses.cpp.
bool cmlabs::Vector3D::isOrthogonalWith | ( | const Vector3D & | v | ) | const |
Definition at line 1943 of file MathClasses.cpp.
bool cmlabs::Vector3D::isParallelWith | ( | const Vector3D & | v | ) | const |
Definition at line 1947 of file MathClasses.cpp.
Definition at line 1951 of file MathClasses.cpp.
Vector3D cmlabs::Vector3D::getUnitVector | ( | ) | const |
Definition at line 1956 of file MathClasses.cpp.
double cmlabs::Vector3D::getAngle | ( | const Vector3D & | v | ) | const |
Definition at line 1960 of file MathClasses.cpp.
double cmlabs::Vector3D::getArea | ( | const Vector3D & | v | ) | const |
Definition at line 1967 of file MathClasses.cpp.
JString cmlabs::Vector3D::print | ( | ) | [virtual] |
JString cmlabs::Vector3D::toXML | ( | ) | [virtual] |
bool cmlabs::Vector3D::fromXML | ( | XMLNode * | node | ) | [virtual] |
double cmlabs::Vector3D::x |
Definition at line 523 of file MathClasses.h.
double cmlabs::Vector3D::y |
Definition at line 524 of file MathClasses.h.
double cmlabs::Vector3D::z |
Definition at line 525 of file MathClasses.h.