CSCI 3081 - Drone Delivery System
Classes | Functions
vector.h File Reference
#include <vector>
#include <string>
#include <iostream>
#include <cmath>
#include <iomanip>
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  csci3081::Vector
 This is the interface class for the Vector3D and Vector2D classes. More...
 
class  csci3081::Vector3D
 This is the Vector3D class. More...
 
class  csci3081::Vector2D
 This is the Vector2D class. More...
 

Functions

Vector2D csci3081::to2D (Vector3D &)
 This function converts a Vector3D instance to a Vector2D. More...
 
Vector3D csci3081::to3D (Vector2D &)
 This function converts a Vector2D instance to a Vector3D. More...
 
Vector3D csci3081::CrossProduct (const Vector &v1, const Vector &v2)
 This function computes the cross product between two vector objects. More...
 

Detailed Description

Function Documentation

◆ CrossProduct()

Vector3D csci3081::CrossProduct ( const Vector v1,
const Vector v2 
)

This function computes the cross product between two vector objects.

Parameters
[in]v1Vector object
[in]v2Vector object
Returns
Vector3D object

◆ to2D()

Vector2D csci3081::to2D ( Vector3D )

This function converts a Vector3D instance to a Vector2D.

Parameters
[in]otherVector3D object
Returns
Vector2D object

◆ to3D()

Vector3D csci3081::to3D ( Vector2D )

This function converts a Vector2D instance to a Vector3D.

Parameters
[in]otherVector2D object
Returns
Vector3D object