Skip to content

Instantly share code, notes, and snippets.

View AngeloGiurano's full-sized avatar
:shipit:
Focusing

Angelo Giurano AngeloGiurano

:shipit:
Focusing
View GitHub Profile
@AngeloGiurano
AngeloGiurano / trilateration.swift
Created March 11, 2016 17:54
Trilateration 2D - Swift
//: Playground - noun: a place where people can play
import UIKit
func trilateration(point1: Point, point2: Point, point3: Point) {
let x1 = point1.position.xCoord
let y1 = point1.position.yCoord
let x2 = point2.position.xCoord