aboutsummaryrefslogtreecommitdiff
path: root/src/Quaternions.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-09 23:07:32 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-09 23:37:37 +0700
commit48417e11854f832c40a42ec497cad3b275b57b2e (patch)
tree73162cd7294a49ba39f0f06afd16da74dee0f6da /src/Quaternions.cpp
parente4888c19818ef61264ea4e1b0da9ebdc302f1483 (diff)
downloadblackshades-48417e11854f832c40a42ec497cad3b275b57b2e.tar.gz
Make XYZ C-compatible
Diffstat (limited to 'src/Quaternions.cpp')
-rw-r--r--src/Quaternions.cpp83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/Quaternions.cpp b/src/Quaternions.cpp
index fc38c44..0bd0442 100644
--- a/src/Quaternions.cpp
+++ b/src/Quaternions.cpp
@@ -2,89 +2,6 @@
#include "Quaternions.h"
-XYZ XYZ::operator+(XYZ add){
- XYZ ne;
- ne=add;
- ne.x+=x;
- ne.y+=y;
- ne.z+=z;
- return ne;
-}
-
-XYZ XYZ::operator-(XYZ add){
- XYZ ne;
- ne=add;
- ne.x=x-ne.x;
- ne.y=y-ne.y;
- ne.z=z-ne.z;
- return ne;
-}
-
-XYZ XYZ::operator*(float add){
- XYZ ne;
- ne.x=x*add;
- ne.y=y*add;
- ne.z=z*add;
- return ne;
-}
-
-XYZ XYZ::operator*(XYZ add){
- XYZ ne;
- ne.x=x*add.x;
- ne.y=y*add.y;
- ne.z=z*add.z;
- return ne;
-}
-
-XYZ XYZ::operator/(float add){
- XYZ ne;
- ne.x=x/add;
- ne.y=y/add;
- ne.z=z/add;
- return ne;
-}
-
-void XYZ::operator+=(XYZ add){
- x+=add.x;
- y+=add.y;
- z+=add.z;
-}
-
-void XYZ::operator-=(XYZ add){
- x=x-add.x;
- y=y-add.y;
- z=z-add.z;
-}
-
-void XYZ::operator*=(float add){
- x=x*add;
- y=y*add;
- z=z*add;
-}
-
-void XYZ::operator*=(XYZ add){
- x=x*add.x;
- y=y*add.y;
- z=z*add.z;
-}
-
-void XYZ::operator/=(float add){
- x=x/add;
- y=y/add;
- z=z/add;
-}
-
-void XYZ::operator=(float add){
- x=add;
- y=add;
- z=add;
-}
-
-bool XYZ::operator==(XYZ add){
- if(x==add.x&&y==add.y&&z==add.z)return 1;
- return 0;
-}
-
void CrossProduct(XYZ P, XYZ Q, XYZ *V){
V->x = P.y * Q.z - P.z * Q.y;
V->y = P.z * Q.x - P.x * Q.z;