Skip to content

Instantly share code, notes, and snippets.

from fontTools.misc.fixedTools import otRound
def findIntersection(p0, p1, p2, p3):
"""
Find the intersection of two segments given two selected points.
"""
# get the coordinates of the points
x0, y0 = p0.x, p0.y
x1, y1 = p1.x, p1.y
x2, y2 = p2.x, p2.y
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'