cmlabs::Vector2D Class Reference

#include <MathClasses.h>

Inheritance diagram for cmlabs::Vector2D:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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


Detailed Description

Definition at line 453 of file MathClasses.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Implements cmlabs::Object.

Definition at line 1599 of file MathClasses.cpp.

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.

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

Definition at line 1620 of file MathClasses.cpp.

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

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.

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

Definition at line 1659 of file MathClasses.cpp.

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

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.

Vector2D cmlabs::Vector2D::getProjectionOn ( const Vector2D v  )  const

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]

Reimplemented from cmlabs::Object.

Definition at line 1706 of file MathClasses.cpp.

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

Reimplemented from cmlabs::Object.

Definition at line 1710 of file MathClasses.cpp.

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

Reimplemented from cmlabs::Object.

Definition at line 1714 of file MathClasses.cpp.


Member Data Documentation

Definition at line 464 of file MathClasses.h.

Definition at line 465 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