summaryrefslogtreecommitdiff
path: root/libgeometry/rframe.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-04-17 11:37:10 +0000
committerrodri <rgl@antares-labs.eu>2020-04-17 11:37:10 +0000
commite77a34629060abfad8e463efda0c3ffc54379793 (patch)
tree9151e47fab853248f95594e6ef48999a1ff6255f /libgeometry/rframe.c
parent263444216730830b712a4f8f3a087513c5ac93e9 (diff)
download3dee-e77a34629060abfad8e463efda0c3ffc54379793.tar.gz
3dee-e77a34629060abfad8e463efda0c3ffc54379793.tar.bz2
3dee-e77a34629060abfad8e463efda0c3ffc54379793.zip
roll everything back.
Diffstat (limited to 'libgeometry/rframe.c')
-rw-r--r--libgeometry/rframe.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/libgeometry/rframe.c b/libgeometry/rframe.c
deleted file mode 100644
index 06d63f2..0000000
--- a/libgeometry/rframe.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include "../geometry.h"
-
-Point2
-rframexform(Point2 p, RFrame rf)
-{
- Matrix m = {
- rf.bx.x, rf.bx.y, -dotvec2(rf.bx, rf.p),
- rf.by.x, rf.by.y, -dotvec2(rf.by, rf.p),
- 0, 0, 1,
- };
- return xform(p, m);
-}
-
-Point3
-rframexform3(Point3 p, RFrame3 rf)
-{
- Matrix3 m = {
- rf.bx.x, rf.bx.y, rf.bx.z, -dotvec3(rf.bx, rf.p),
- rf.by.x, rf.by.y, rf.by.z, -dotvec3(rf.by, rf.p),
- rf.bz.x, rf.bz.y, rf.bz.z, -dotvec3(rf.bz, rf.p),
- 0, 0, 0, 1,
- };
- return xform3(p, m);
-}
-
-Point2
-invrframexform(Point2 p, RFrame rf)
-{
- Matrix m = {
- rf.bx.x, rf.bx.y, -dotvec2(rf.bx, rf.p),
- rf.by.x, rf.by.y, -dotvec2(rf.by, rf.p),
- 0, 0, 1,
- };
- invm(m);
- return xform(p, m);
-}
-
-Point3
-invrframexform3(Point3 p, RFrame3 rf)
-{
- Matrix3 m = {
- rf.bx.x, rf.bx.y, rf.bx.z, -dotvec3(rf.bx, rf.p),
- rf.by.x, rf.by.y, rf.by.z, -dotvec3(rf.by, rf.p),
- rf.bz.x, rf.bz.y, rf.bz.z, -dotvec3(rf.bz, rf.p),
- 0, 0, 0, 1,
- };
- invm3(m);
- return xform3(p, m);
-}