Wheatley::CVector::CVector |
( |
| ) |
|
Default constructor for initializing a two dimensional cartesian vector
Wheatley::CVector::~CVector |
( |
| ) |
|
|
virtual |
Default destructor for deleting a two dimensional cartesian vector
void Wheatley::CVector::CalcComponents |
( |
| ) |
|
takes the magnitude and angle a vector makes with the x-axis and splits it into its X and Y components
void Wheatley::CVector::CalcMagnitude |
( |
| ) |
|
takes the x and y components and calculates the magnitude of the vector
void Wheatley::CVector::CalcTheta |
( |
| ) |
|
calculates the Theta value based on the x and y components of the vector by getting the arctan value from them
void Wheatley::CVector::CreateVector |
( |
| ) |
|
creates the vector based on user input
double Wheatley::CVector::getMagnitude |
( |
| ) |
const |
|
inline |
returns the magnitude of the vector
- Returns
- The magnitude of the vector
double Wheatley::CVector::getTheta |
( |
| ) |
const |
|
inline |
gets the the angle the vector makes with the x-axis
- Returns
- the angle the vector makes with the x-axis
double Wheatley::CVector::getXComponent |
( |
| ) |
const |
|
inline |
gets the X component of the vector
- Returns
- the X component of the vector
double Wheatley::CVector::getXTheta |
( |
| ) |
const |
|
inline |
gets the angle between the X and Y components of the vector
- Returns
- the angle between the X and Y components of the vector
double Wheatley::CVector::getYComponent |
( |
| ) |
const |
|
inline |
gets the Y component of the vector
- Returns
- the Y component of the vector
double Wheatley::CVector::getYTheta |
( |
| ) |
const |
|
inline |
gets the angle between the Y component and the magnitude
- Returns
- the angle between the Y component and the magnitude
adds the X and Y components of two vectors
subrtacts the X and Y components of two vectors
sets one vector equal to another
void Wheatley::CVector::setMagnitude |
( |
double |
magnitude | ) |
|
|
inline |
sets the magnitude of the vector
- Parameters
-
magnitude | the magnitude of the vector |
void Wheatley::CVector::setTheta |
( |
double |
theta | ) |
|
|
inline |
sets the angle made with the x-axis
- Parameters
-
theta | the angle the vector makes with the x-axis |
void Wheatley::CVector::setXComponent |
( |
double |
component | ) |
|
|
inline |
sets the X component of the vector
- Parameters
-
component | the X component of the vector |
void Wheatley::CVector::setXTheta |
( |
double |
theta | ) |
|
|
inline |
sets the angle between the X and Y components of the vector
- Parameters
-
theta | the angle between the X and Y components of the vector |
void Wheatley::CVector::setYComponent |
( |
double |
component | ) |
|
|
inline |
sets the Y component of the vector
- Parameters
-
component | the Y component of the vector |
void Wheatley::CVector::setYTheta |
( |
double |
theta | ) |
|
|
inline |
sets the angle between the Y component and the magnitude
- Parameters
-
theta | the angle between the Y component and the magnitude |
double Wheatley::CVector::toDegree |
( |
double |
angle | ) |
|
|
inline |
converts an angle from radians to degrees
- Parameters
-
angle | the angle, in radians, to be converted |
- Returns
- thhe angle in degrees
double Wheatley::CVector::toRadian |
( |
double |
angle | ) |
|
|
inline |
converts an angle from degrees to radians
- Parameters
-
angle | the angle, in degrees, to be converted |
- Returns
- the angle in radians
double Wheatley::CVector::Magnitude |
the magnitude of the vector
double Wheatley::CVector::Theta |
The angle the vector makes with the with the x-axis
double Wheatley::CVector::XComponent |
The X component of the vector
double Wheatley::CVector::XTheta |
The angle of between the X and Y components
double Wheatley::CVector::YComponent |
The Y component of the vector
double Wheatley::CVector::YTheta |
The angle between the Y component and the magnitude
The documentation for this class was generated from the following files:
- Wheatley/src/CVector.h
- Wheatley/src/CVector.cpp