36 lines
1.0 KiB
Plaintext
Raw Normal View History

class Vector3D
{
%TypeHeaderCode
#include <Vector3D.h>
%End
public:
2015-07-29 11:52:14 +02:00
/** Constructor taking the three components as arguments*/
Vector3D( double x, double y, double z );
2015-07-29 11:52:14 +02:00
/** Default constructor*/
Vector3D();
2015-07-29 11:52:14 +02:00
/** Copy constructor*/
Vector3D( const Vector3D& v );
2015-07-29 11:52:14 +02:00
/** Destructor*/
~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*/
double getX() const;
2015-07-29 11:52:14 +02:00
/** Returns the y-component of the vector*/
double getY() const;
2015-07-29 11:52:14 +02:00
/** Returns the z-component of the vector*/
double getZ() const;
2015-07-29 11:52:14 +02:00
/** Returns the length of the vector*/
double getLength() const;
2015-07-29 11:52:14 +02:00
/** Sets the x-component of the vector*/
void setX( double x );
2015-07-29 11:52:14 +02:00
/** Sets the y-component of the vector*/
void setY( double y );
2015-07-29 11:52:14 +02:00
/** Sets the z-component of the vector*/
void setZ( double z );
2015-07-29 11:52:14 +02:00
/** Standardises the vector*/
void standardise();
};