diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-25 22:14:03 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-25 22:14:03 +0900 |
| commit | 968d8a86f5a7e08f71bd449a466cc467efb11e3d (patch) | |
| tree | bfd82936edd7439e48412a43892340ea25b5a672 /src/Quaternions.cpp | |
| parent | d7f9a74f75ba0ce2167fa0e529a009becdcee7e3 (diff) | |
| download | blackshades-968d8a86f5a7e08f71bd449a466cc467efb11e3d.tar.gz | |
Convert square of norm calculation to Zig
Diffstat (limited to 'src/Quaternions.cpp')
| -rw-r--r-- | src/Quaternions.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Quaternions.cpp b/src/Quaternions.cpp index 9142da0..2de000b 100644 --- a/src/Quaternions.cpp +++ b/src/Quaternions.cpp @@ -107,14 +107,6 @@ float findDistance(XYZ point1, XYZ point2){ return sqrt((point1.x-point2.x)*(point1.x-point2.x)+(point1.y-point2.y)*(point1.y-point2.y)+(point1.z-point2.z)*(point1.z-point2.z)); } -float findLengthfast(XYZ point1){ - return((point1.x)*(point1.x)+(point1.y)*(point1.y)+(point1.z)*(point1.z)); -} - -float findDistancefast(XYZ point1, XYZ point2){ - return((point1.x-point2.x)*(point1.x-point2.x)+(point1.y-point2.y)*(point1.y-point2.y)+(point1.z-point2.z)*(point1.z-point2.z)); -} - XYZ DoRotation(XYZ thePoint, float xang, float yang, float zang){ XYZ newpoint; if(xang){ |
