ghilesZ / geoml

A 2d geometry library for ocaml
GNU Lesser General Public License v2.1
35 stars 5 forks source link

Negative area value #6

Closed stevenvar closed 8 years ago

stevenvar commented 8 years ago

Using module Polygon :

open Polygon
let _ =
  let l = [(0.,0.);(0.,1.);(1.,1.);(1.,0.)] in
  let points = List.map (fun (x,y) -> Point.make x y) l in
  area points |> print_float 

returns -1

ghilesZ commented 8 years ago

fixed. Thanks