ScummVM API documentation
Bagel::CVector Class Reference
Inheritance diagram for Bagel::CVector:
Bagel::CBofObject Bagel::Vector

Public Member Functions

 CVector ()
 
 CVector (const Vector &stVector)
 
 CVector (double xx, double yy, double zz=0)
 
double dotProduct (const Vector &vector)
 
void rotate (double fAngle)
 
double angleBetween (const Vector &vector)
 
double realAngle (const Vector &vector)
 
double length ()
 
CVector operator+ (Vector)
 
CVector operator+ (double)
 
CVector operator- (Vector)
 
CVector operator- (double)
 
CVector operator* (double)
 
CVector operator/ (double)
 
void operator+= (Vector)
 
void operator-= (Vector)
 
void operator*= (double)
 
void operator/= (double)
 
bool operator== (Vector)
 

Additional Inherited Members

- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 
- Public Attributes inherited from Bagel::Vector
double x
 
double y
 
double z
 

Constructor & Destructor Documentation

◆ CVector() [1/3]

Bagel::CVector::CVector ( )

Default constructor

◆ CVector() [2/3]

Bagel::CVector::CVector ( const Vector stVector)

Copy constructor

◆ CVector() [3/3]

Bagel::CVector::CVector ( double  xx,
double  yy,
double  zz = 0 
)

Constructor based on passed figures

Member Function Documentation

◆ dotProduct()

double Bagel::CVector::dotProduct ( const Vector vector)

Calculates the dot-product of the 2 specified vectors

Parameters
vectorSecond vector
Returns
Dot-product

◆ rotate()

void Bagel::CVector::rotate ( double  fAngle)

Rotates this vector the specified number of degrees

Parameters
fAngleRotation angle

◆ angleBetween()

double Bagel::CVector::angleBetween ( const Vector vector)

Gets the angle between this vector and specified vector

Parameters
vectorSecond vector
Returns
Angle

◆ realAngle()

double Bagel::CVector::realAngle ( const Vector vector)

Calculates the positive or negative angle between 2 vectors

Parameters
vectorSecond vector
Returns
Angle

◆ length()

double Bagel::CVector::length ( )

Gets the length of this vector

Returns
Vector length

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