KurusView  1.0
MVector.h File Reference

Header file for MVector class. More...

#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>

Go to the source code of this file.

Classes

class  MVector
 

Functions

double dotProduct (MVector v1, MVector v2)
 dotProduct - finds the dot product between two vectors More...
 
double scalarTripleProduct (MVector dotA, MVector xB, MVector xC)
 Scalar Triple Product - https://en.wikipedia.org/wiki/Triple_product. More...
 

Detailed Description

Header file for MVector class.

Author
github.com/georgekhanachat This object encapsulates a vector with coordinates in 3D and an ID

Function Documentation

double dotProduct ( MVector  v1,
MVector  v2 
)

dotProduct - finds the dot product between two vectors

Parameters
v1- first instance of MVector
v2- second instance of MVector
Returns
- Dot product of v1 and v2
double scalarTripleProduct ( MVector  dotA,
MVector  xB,
MVector  xC 
)

Scalar Triple Product - https://en.wikipedia.org/wiki/Triple_product.

Returns
- Scalar Triple Product product dotA,xB,xC