summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-07-17 03:44:02 -0500
committerepoch <epoch@hacking.allowed.org>2020-07-17 03:44:02 -0500
commitd1347508d7080980eb1a4974ab91d98bb08c39b1 (patch)
treed88b356a2ce4eb30beb6bcae76b189ec9ba3f951 /src
parentd00cf5f8fdd18a5ef0dfbfa8a24db360d4c16029 (diff)
downloadhackvr-d1347508d7080980eb1a4974ab91d98bb08c39b1.tar.gz
hackvr-d1347508d7080980eb1a4974ab91d98bb08c39b1.zip
removed some commented out code and put braces around an if's body
Diffstat (limited to 'src')
-rw-r--r--src/math.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/math.c b/src/math.c
index 2221957..0f48dd3 100644
--- a/src/math.c
+++ b/src/math.c
@@ -157,8 +157,7 @@ c3_t c3_multiply(c3_t p,c3_t s) {
// arm pieces will rotate around origin...
// I dunno....
c3_t point_apply_group_relative(c3_t p,c3_group_rel_t *gr) {
- if(!gr) return p;//fuck it. nothing to do..
-
+ if(!gr) { return p; }
return c3_add(point_apply_group_relative(gr->p,get_group_relative(gr->parent)),
rotate_c3_xr(
rotate_c3_yr(
@@ -202,20 +201,6 @@ c3_s_t apply_group_relative(c3_s_t s,c3_group_rel_t *group_rel) {
} else {
if(gr) {
s2.p[i]=point_apply_group_relative(s.p[i],gr);
-
-/*
- s.p[i].x *= gr->s.x;
- s.p[i].y *= gr->s.y;
- s.p[i].z *= gr->s.z;//scaling applied? sure....
- //s2.p[i]=c3_add(gr->p,rotate_c3_yr(s.p[i],gr->p,d2r(gr->r.y)));
- s2.p[i]=c3_add(gr->p,rotate_c3_xr(
- rotate_c3_yr(
- rotate_c3_zr(s.p[i],(c3_t){0,0,0},d2r(gr->r.z)
- ),(c3_t){0,0,0},d2r(gr->r.y)
- ),(c3_t){0,0,0},d2r(gr->r.x)
- )
- );
-*/
} else {
s2.p[i]=s.p[i];
}