This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "largest object" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Thu Jan 31 10:40:59 2013 | |
| @author: Jean-Patrick Pommier | |
| http://dip4fish.blogspot.fr/2013/01/selecting-simple-quadrilateral-from.html | |
| simpoly : | |
| http://people.virginia.edu/~ll2bf/docs/various/polyarea.html | |
| """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Tue Dec 18 08:33:15 2012 | |
| Modif 3 january 2013 to use matplotlib.patches.Polygon | |
| @author: Jean-Patrick Pommier | |
| Test the shoelace formula to compute the area of a quadrilateral: | |
| . Chose four points | |
| . test if self intersection occurs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Fri Dec 14 22:02:31 2012 | |
| @author: Jean-Patrick | |
| """ | |
| import random | |
| import itertools as it |
NewerOlder