summaryrefslogtreecommitdiffstats
path: root/core/math/geometry.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-24 21:45:31 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-24 21:45:31 +0100
commitdebeee56f721178d44f71deb4e303b825d1dccd1 (patch)
tree6c88f378419a5760bbe919c48c87d1c71a6ea548 /core/math/geometry.h
parentc103f32ea3b19c3588d54dcef98e307f8b823f4c (diff)
downloadredot-engine-debeee56f721178d44f71deb4e303b825d1dccd1.tar.gz
Fix typos in source code using codespell
From https://github.com/lucasdemarchi/codespell
Diffstat (limited to 'core/math/geometry.h')
-rw-r--r--core/math/geometry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/geometry.h b/core/math/geometry.h
index 93ab0be2e0..26f977e6eb 100644
--- a/core/math/geometry.h
+++ b/core/math/geometry.h
@@ -108,7 +108,7 @@ public:
//do the function 'd' as defined by pb. I think is is dot product of some sort
#define d_of(m, n, o, p) ((m.x - n.x) * (o.x - p.x) + (m.y - n.y) * (o.y - p.y) + (m.z - n.z) * (o.z - p.z))
- //caluclate the parpametric position on the 2 curves, mua and mub
+ //calculate the parametric position on the 2 curves, mua and mub
real_t mua = ( d_of(p1,q1,q2,q1) * d_of(q2,q1,p2,p1) - d_of(p1,q1,p2,p1) * d_of(q2,q1,q2,q1) ) / ( d_of(p2,p1,p2,p1) * d_of(q2,q1,q2,q1) - d_of(q2,q1,p2,p1) * d_of(q2,q1,p2,p1) );
real_t mub = ( d_of(p1,q1,q2,q1) + mua * d_of(q2,q1,p2,p1) ) / d_of(q2,q1,q2,q1);