You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
380 B

#include "GMath.h"
#include "CArrayBuffer.h"
#include "CDataView.h"
#include "CFloat32Array.h"
int main() {
GVector3 v1(SQRT(2)/2, SQRT(2) / 2, 0);
GVector3 v2(-1, 1, -1);
GVector3 v3(0, -2, -2);
GVector3 w1 = v1;
GVector3 w2 = v2 - proj(v2, w1); //cout << w2 << endl;
GVector3 w3 = v3 - proj(v3, w1) - proj(v3, w2); //cout << w3 << endl;
return 0;
}