2012-09-24 02:28:15 +02:00
|
|
|
class Vector3D
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <Vector3D.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Constructor taking the three components as arguments*/
|
2012-09-24 02:28:15 +02:00
|
|
|
Vector3D( double x, double y, double z );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Default constructor*/
|
2012-09-24 02:28:15 +02:00
|
|
|
Vector3D();
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Copy constructor*/
|
2012-09-24 02:28:15 +02:00
|
|
|
Vector3D( const Vector3D& v );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Destructor*/
|
2012-09-24 02:28:15 +02:00
|
|
|
~Vector3D();
|
2014-05-27 23:22:50 +02:00
|
|
|
// Vector3D& operator=( const Vector3D& v );
|
2015-10-27 14:51:52 +11:00
|
|
|
bool operator==( const Vector3D& v ) const;
|
|
|
|
bool operator!=( const Vector3D& v ) const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the x-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
double getX() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the y-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
double getY() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the z-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
double getZ() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the length of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
double getLength() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Sets the x-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void setX( double x );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Sets the y-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void setY( double y );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Sets the z-component of the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void setZ( double z );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Standardises the vector*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void standardise();
|
|
|
|
};
|