# Affine math library

**URL:** <https://www.ruby-forum.com/t/affine-math-library/151953>\
**Category:** Ruby\
**Created:** [October 28, 2008, 11:31am UTC](https://www.ruby-forum.com/t/affine-math-library/151953 "2008-10-28T11:31:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [October 28, 2008, 11:31am UTC](https://www.ruby-forum.com/t/affine-math-library/151953/1 "2008-10-28T11:31:54Z")

</div>

Hey,

I am looking for a math library for doing affine maths like  
interscting some primitives (point, line, halfspace, convex polyedron  
etc)

I want to rasterize a triangle over a rectangular grid and it does not  
have to be fast in the first place. So I thought of just hitting these  
primitives.

Anybody knows of such a library ?

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [October 28, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/affine-math-library/151953/2 "2008-10-28T20:44:20Z")

</div>

-------- Original-Nachricht --------

> Datum: Tue, 28 Oct 2008 19:30:48 +0900  
> Von: Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: removed\_email\_address@domain.invalid  
> Betreff: Affine math library

> Anybody knows of such a library ?

Dear Oliver,

I don’t now of anything in Ruby, but there’s a quite complete (600000  
lines of C/C++ code)  
CGAL library.

[http://www.cgal.org/](http://www.cgal.org/)

[![](https://img.youtube.com/vi/3DLfkWWw_Tg/hqdefault.jpg "CGAL: The Open Source Computational Geometry Algorithms Library") ](https://www.youtube.com/watch?v=3DLfkWWw_Tg)

Maybe you’ll write some Ruby bindings for it ?

Best regards,

Axel
