cmlabs::Vector3D Class Reference

#include <MathClasses.h>

Inheritance diagram for cmlabs::Vector3D:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::Vector3D:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vector3D ()
 Vector3D (JString xml)
 Vector3D (XMLNode *node)
 Vector3D (double x, double y, double z)
virtual ~Vector3D ()
Objectclone () 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 Vector3Doperator-= (const Vector3D &v)
const Vector3Doperator+= (const Vector3D &v)
const Vector3Doperator-= (double a)
const Vector3Doperator+= (double a)
const Vector3Doperator*= (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


Detailed Description

Definition at line 512 of file MathClasses.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Object * cmlabs::Vector3D::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 1787 of file MathClasses.cpp.

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.

Vector3D cmlabs::Vector3D::operator- ( const Vector3D v  )  const

Definition at line 1811 of file MathClasses.cpp.

Vector3D cmlabs::Vector3D::operator+ ( const Vector3D v  )  const

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.

const Vector3D & cmlabs::Vector3D::operator-= ( const Vector3D v  ) 

Definition at line 1855 of file MathClasses.cpp.

const Vector3D & cmlabs::Vector3D::operator+= ( const Vector3D v  ) 

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.

Vector3D cmlabs::Vector3D::product ( const Vector3D v  )  const

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.

Vector3D cmlabs::Vector3D::getProjectionOn ( const Vector3D v  )  const

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]

Reimplemented from cmlabs::Object.

Definition at line 1909 of file MathClasses.cpp.

JString cmlabs::Vector3D::toXML (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 1913 of file MathClasses.cpp.

bool cmlabs::Vector3D::fromXML ( XMLNode node  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 1917 of file MathClasses.cpp.


Member Data Documentation

Definition at line 523 of file MathClasses.h.

Definition at line 524 of file MathClasses.h.

Definition at line 525 of file MathClasses.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:23:03 2009 for CoreLibrary by  doxygen 1.5.6