using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MathNet.Numerics.LinearAlgebra.Single; namespace bbiwarg.Detectors { class CollisionDetection { public static float getDistance(Vector origin, Vector normal, Vector fingerPoint) { return Math.Abs((fingerPoint - origin).DotProduct(normal)); } } }