summaryrefslogtreecommitdiff
path: root/xform.c
diff options
context:
space:
mode:
Diffstat (limited to 'xform.c')
-rw-r--r--xform.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xform.c b/xform.c
index b6e4397..4351113 100644
--- a/xform.c
+++ b/xform.c
@@ -139,6 +139,12 @@ viewport2world(Camera *c, Point3 p)
return vcs2world(c, viewport2vcs(c, p));
}
+Point3
+world2model(Entity *e, Point3 p)
+{
+ return rframexform3(p, *e);
+}
+
void
perspective(Matrix3 m, double fovy, double a, double n, double f)
{