aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/fns.h b/fns.h
new file mode 100644
index 0000000..598ecb2
--- /dev/null
+++ b/fns.h
@@ -0,0 +1,31 @@
+int objread(char *, Triangle3 **);
+Triangle Trian(int, int, int, int, int, int);
+Triangle Trianpt(Point, Point, Point);
+Point centroid(Triangle);
+void triangle(Image *, Triangle, int, Image *, Point);
+void filltriangle(Image *, Triangle, Image *, Point);
+Triangle rotatriangle(Triangle, double, Point);
+Vector Vec(double, double);
+Vector addvec(Vector, Vector);
+Vector subvec(Vector, Vector);
+Vector mulvec(Vector, double);
+double dotvec(Vector, Vector);
+Vector normvec(Vector);
+Vector3 Vec3(double, double, double);
+Vector3 addvec3(Vector3, Vector3);
+Vector3 subvec3(Vector3, Vector3);
+Vector3 mulvec3(Vector3, double);
+double dotvec3(Vector3, Vector3);
+Vector3 crossvec(Vector3, Vector3);
+Vector3 normvec3(Vector3);
+void addm(Matrix, Matrix);
+void subm(Matrix, Matrix);
+void mulm(Matrix, Matrix);
+void transm(Matrix);
+double detm(Matrix);
+Vector3 mulvecm(Vector3, Matrix);
+double round(double);
+Point rotatept(Point, double, Point);
+double hypot3(double, double, double);
+void *emalloc(ulong);
+void *erealloc(void *, ulong);