diff options
author | rodri <rgl@antares-labs.eu> | 2021-07-18 15:18:55 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-07-18 15:18:55 +0000 |
commit | db4fa883438f3910a3287320f42ae4aae42cc73b (patch) | |
tree | 868b9de20443f62dc403ddbc16eef3a2a1244b8f /graphics.h | |
parent | 524e19eee808837873435f908fd9b80a372673f8 (diff) | |
download | libgraphics-db4fa883438f3910a3287320f42ae4aae42cc73b.tar.gz libgraphics-db4fa883438f3910a3287320f42ae4aae42cc73b.tar.bz2 libgraphics-db4fa883438f3910a3287320f42ae4aae42cc73b.zip |
add a line clipping procedure based on the Liang-Barsky algorithm. (thanks jmi2k!)
Diffstat (limited to 'graphics.h')
-rw-r--r-- | graphics.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -67,6 +67,7 @@ Point3 world2vcs(Camera*, Point3); Point3 vcs2ndc(Camera*, Point3); Point3 world2ndc(Camera*, Point3); int isclipping(Point3); +int clipline3(Point3*, Point3*); Point toviewport(Camera*, Point3); Point2 fromviewport(Camera*, Point); void perspective(Matrix3, double, double, double, double); |